is there a way to "Skip authentication" ?
# support-questions-legacy
a
is there a way to "Skip authentication" ?
r
Hey. There is. Create an api on your backend which directly calls the create new session function with the user id
a
Hey Rishabh, I need more support here, let's say we would like to use passwordless recipe but we also want to offer a skip button to skip the whole authentication, how can this be possible ?
r
how would the skip button really work? I mean whom would you login in this case?
a
exactly, no one, I d like to make the whole authentication optional. is this possible ?
r
oh right.. so it's like anonymous login? Just a random user ID?
a
hmmm but that will still create a session right or how? what am looking for is basically offer users to postpone the authentication this is by skipping. you have definetely seen some apps or so not forcing you to perform creating an account and instead just taking a look at your product first
r
yea, you can create a session with a random user ID, and then when they login later on, you can overwrite their current session with a new one, and transfer any data across the two sessions if needed.
a
I sseeee that good idea.. and that's possible ? if (skip) > we perform anonymous recipe if(passwordless) we perform passwordless recipe
r
the link shared above shows you how to create a session. Just pass in a random UUID for anonymous sessions
10 Views