Hi, If I want to get e. g. email from session, I s...
# general
w
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
w
So both ways are ok and there's your one is too?
r
Yes.
w
I see. Thanks :)
2 Views