Closed hld0 closed 1 month ago
You are not specifying the path of the route. Try something like this:<my-app-scheme>://callback/restore-password
.
Another tip here is that underscores don't work well as URLs, so generally should be avoided.
Thank you @dshukertjr! This actually solved the issue.
I always thought that the /callback/
part was not necessary.
I also removed all the underscores from my other URLs, thank you for that tip.
Hi!
I am not sure if this is a bug or just me having wrongly configured
go_router
so I would like to apologize in advance if this is wrong. Still, it kept me busy for a few days now and I am unsure how to proceed from here.I have implemented the reset password functionality in my Flutter app. My issue is that if i put in the associated URL as
redirectTo
it opens the URL in the browser only and not the application itself. (Although it does show the button to open the page in the app). As clicking links directly with the associated domain usually works without problems I assume that this is expected behavior by iOS.Therefore, I entered my custom app scheme like this:
The redirect works and opens the app successfully, but it cannot navigate to the
restore_password
page as it gives the following error:Everything should be configured correctly, my
Info.plist
contains the following:As well as having the same url in my redirect URLs in my Supabase dashboard.
A possible workaround which lets me navigate to the desired page is to listen to
AuthChangeEvent
s in myinitState()
like so:It still throws the same error, but at least in this case navigation does work. Is there any better way to make this work? My App is configured as follows in my
main.dart
:To Reproduce Steps to reproduce the behavior:
resetPasswordForEmail
with a custom scheme as redirect like so:supabase.auth.resetPasswordForEmail(emailAddress, redirectTo: '<my-app-scheme>//restore_password')
Expected behavior Should navigate to the specified screen in the URI.
Package information