Hey
@rp_st 🙂
I have a scenario, and Im trying to figure out what is the best way of doing it using SuperTokens.
Until now, I used the email+password recipe in order to login and signup users. Now, I have to login users only based on their phone number and Im doing the authentication of the user earlier using another way, and everything happens in the backend.
The flow is the following: The user comes to a specific webpage from a 3rd party provider with a token -> Im sending everything to my backend -> validating the 3rd party token (not related to super tokens) ->
login the user and create a session using super tokens
what I thought about doing:
1. using the email + password recipe, creating a temp password every time I want to authenticate the user, and use the signIn function from
supertokens-node/recipe/emailpassword
. I tried this way, and the sign in worked, but the response has no cookie and therefore no session was created in the front. As I said Im calling my endpoint and not supertokn's signin function in the front.
2. using the password less recipe, but I dont understand how to achieve it using this recipe, because I dont need otp or magic links.
Thank you!