Open up a link containing a code query param (I'm using an iOS simulator):
/usr/bin/xcrun simctl openurl booted "URL/?code=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
onAuthStateChange won't print the passwordRecovery event.
Remove uriLinkStream added in Step 1, restart app and repeat step 3.
onAuthStateChange now prints the passwordRecovery event.
Expected behavioronAuthStateChange should always trigger when a passwordRecovery URL is being opened in the app
Version (please complete the following information):
Additional context
I tried registering the listeners in different orders, (AppLinks before Supabase, Supabase before AppLinks), but it didn't change anything.
InitialAppLinks works as expected, the issue only occurs when the app is already running.
I believe this is how app_link works. You can call the supabase.auth.getSessionFromUrl() method by yourself within the app_link callback if you require using app_link in your app.
Describe the bug When a listener for AppLinks'
uriLinkStream
stream has been registered,onAuthStateChange
won't emit apasswordRecovery
event.To Reproduce Steps to reproduce the behavior:
uriLinkStream
:onAuthStateChange
:/usr/bin/xcrun simctl openurl booted "URL/?code=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
onAuthStateChange
won't print thepasswordRecovery
event.uriLinkStream
added in Step 1, restart app and repeat step 3.onAuthStateChange
now prints thepasswordRecovery
event.Expected behavior
onAuthStateChange
should always trigger when a passwordRecovery URL is being opened in the appVersion (please complete the following information):
Additional context I tried registering the listeners in different orders, (AppLinks before Supabase, Supabase before AppLinks), but it didn't change anything. InitialAppLinks works as expected, the issue only occurs when the app is already running.