Hey people, I wanted to implement my own endpoint for signin where I do some logic and after that I call the EmailPassword.signIn(email, password) to signin the user and respond to frontend with my added data. But it seems to be missing the headers which has all the session data.
What is a good way to do this?
r
rp_st
01/09/2023, 4:12 PM
Hey @Dalai Llama
rp_st
01/09/2023, 4:12 PM
After calling sign in, you need to take the user id and call the await Session.createNewSession function
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).