I have this code for consume code
And this for session creation :
But I want the sessionHandle in method post signup , but since session gets created after this how can I achieve this ?
r
rp_st
10/18/2023, 6:09 AM
hey @krrishan
rp_st
10/18/2023, 6:10 AM
you can override the consumeCodePOST API instead of the functino and in there, once you call the orignial impl, you will have the response.session object using which you can get the sessionHandle
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).