Hi, If I want to get e. g. email from session, I s...
# general
u
Hi, If I want to get e. g. email from session, I should use: const { email } = session.getAccessTokenPayload(); or const accessTokenPayload = session.getAccessTokenPayload(); const { email } = accessTokenPayload.customClaim; ?
r
Hey.
The other way is to use ThirdpartyEmailPassword.getUserById function
u
So both ways are ok and there's your one is too?
r
Yes.
u
I see. Thanks :)
2 Views