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.
-
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.
Uh oh!
There was an error while loading. Please reload this page.
-
The
authenticateWithRedirectfunction has the propsredirectUrlandredirectUrlCompletethat I'm finding confusing to understand the difference by observing the real behavior. In my app, theredirectUrlgoes to thesso-callback, while theredirectUrlCompletegoes to the user's home page.What I'm noticing is that the
redirectUrlis only used when the user sign in for the first time (sign up), while theredirectUrlCompleteis only used when the user already has an account (sign in). On the latter case, theredirectUrlis ignored. Is that always the expected behavior?If so, then why on the
sso-callback- on theAuthenticateWithRedirectcomponent - I have to specify theafterSignInandafterSignUpprops? It will only using theafterSignUppath.Maybe that changes depending on the provider? I'm only testing with Google.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions