How can I get the user email from its session on a...
# support-questions-legacy
r
How can I get the user email from its session on a backend? E.g. the email that the user used for either passwordless, login/password or social login.
r
hey @rip21 you will first have to add the email to the access token payload via createNewSession override
then you can later fetch it using session.getAccessTokenPayload()
r
yea, this override.
d
Hi, Is there a way to get the email from that
getRequestFromUserContext
call? Or should we query the supertokens database?
r
You would have to query the db.
12 Views