verifyUserEmail
Script
v2
Fork
1
2
3
4
5
6
7
8
import
{
api
}
from
"https://esm.town/v/pomdtr/api"
;
export
async
function
verifyUserEmail
(
email
:
string
)
{
const
me
=
await
api
<
{
email
:
string
}
>
(
"/v1/me"
,
{
authenticated
:
true
,
}
)
;
return
email
==
me
.
email
;
}