Hey, I set data in userContext on thirdPartySignInUpPOST and access that data in createNewSession. N...
f
Hey, I set data in userContext on thirdPartySignInUpPOST and access that data in createNewSession. New session gets created and after that my userContext loses the data that was set in thirdPartySignInUpPOST. After session is created, in passwordless recipe my userContext doesn't contain any data except session. Is this expected behavior, and how can I pass data between two recipes?
r
hey @fdundjer the user context stays alive per API call only.
So if you want to pass info across API calls, you should probably add it to the access token payload maybe
of the session
f
How can I remove this data later from payload?
r
what do you mean?
oh right
we have functions on the backend and function to read from the session
see our docs - access token payload
f
Got it, thanks
I've just noticed that there is a property: sessionDataInDatabase What should that one been used for? Can't find docs on when to use it?
f
docs are for accesstokenpayload or I'm missing something?
r
it is for access token payload