Behavior of redirectUrl and redirectUrlComplete on the signIn.authenticateWithRedirect function #2666
Replies: 5 comments
-
@rodrigotavio91 , have you found any solution for this? |
Beta Was this translation helpful? Give feedback.
-
@gfarhan18 I assumed that was always the behavior. On the It worked as expected, but I end up switching to Supabase Auth after due to the lack of support for the native Apple sign in. |
Beta Was this translation helpful? Give feedback.
-
Yes, |
Beta Was this translation helpful? Give feedback.
-
Not having this exact same issue, but I was also having issues following who gets redirected where in different scenarios and went down a rabbit hole. The |
Beta Was this translation helpful? Give feedback.
-
The
authenticateWithRedirect
function has the propsredirectUrl
andredirectUrlComplete
that I'm finding confusing to understand the difference by observing the real behavior. In my app, theredirectUrl
goes to thesso-callback
, while theredirectUrlComplete
goes to the user's home page.What I'm noticing is that the
redirectUrl
is only used when the user sign in for the first time (sign up), while theredirectUrlComplete
is only used when the user already has an account (sign in). On the latter case, theredirectUrl
is ignored. Is that always the expected behavior?If so, then why on the
sso-callback
- on theAuthenticateWithRedirect
component - I have to specify theafterSignIn
andafterSignUp
props? It will only using theafterSignUp
path.Maybe that changes depending on the provider? I'm only testing with Google.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions