hey @rajubai11 you need to add the email to the access token payload yourself with the createNewSession override
r
rajubai11
05/17/2023, 10:18 AM
so i need to store email to my db and then retrieve and use as payload
rajubai11
05/17/2023, 10:19 AM
anyway to get from session data
r
rp_st
05/17/2023, 11:14 AM
you don't need to store email in your db. You can get the email of the user using our functions for the recipe on the backend like EmailPassword.getUserById.
rp_st
05/17/2023, 11:14 AM
then in the createNewSession override, add the email to the access token payload and read it on the frontend