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
rp_st
01/29/2023, 3:16 AM
Hey.
rp_st
01/29/2023, 3:17 AM
The other way is to use ThirdpartyEmailPassword.getUserById function