me_abhii
01/23/2023, 11:51 AMawait ThirdPartyPasswordless.getUserById(ses.getUserId())
returns undefined
even if req.session
returns the session object with valid session.
At frontend:
I am receiving a valid response with status: "OK"
This all thing happens during first login only. After that it works without any errors?
Any idea why does this happen?rp_st
01/23/2023, 12:04 PMrp_st
01/23/2023, 12:04 PMrp_st
01/23/2023, 12:04 PMme_abhii
01/23/2023, 12:10 PMthirdPartySignInUpPOST
and consumeCodePOST
which returns riginalImplementation.consumeCodePOST(input);
as a response. This creates a user in supertokens which I can see in supertokens dashboard.me_abhii
01/23/2023, 12:11 PMrp_st
01/23/2023, 12:37 PMme_abhii
01/23/2023, 12:41 PMresponse.createdNewUser == true
the issue arises else No issue at all
rp_st
01/23/2023, 12:41 PMrp_st
01/23/2023, 12:42 PMawait ThirdPartyPasswordless.getUserById(ses.getUserId())
?me_abhii
01/23/2023, 4:28 PMawait ThirdPartyPasswordless.getUserById(ses.getUserId())
at the backendrp_st
01/23/2023, 4:29 PMThirdPartyPasswordless
recipe, then getting that user via that recipe post sign up would yield their user object.
Are you doing some sort of user ID mapping?