Skip to content

fix: await for the initial deeplink to be handled during auth initialize #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2022

Conversation

dshukertjr
Copy link
Member

@dshukertjr dshukertjr commented Oct 29, 2022

What kind of change does this PR introduce?

Currently, the initial deep link is handled asynchronously. This means that if the app was launched with a deeplink containing session, the session is still null on app launch. This could be a bit of counter intuitive developer experience.

This PR awaits the initial deep link handling so that if there were auth links on the initial app launch, the session will be present at the very beginning.

Related supabase/supabase#9793 (reply in thread)

@dshukertjr dshukertjr changed the title handle initial deeplink asynchronously await for the initial deeplink to be handled during auth initialize Oct 29, 2022
@dshukertjr dshukertjr requested a review from a team October 29, 2022 13:12
@dshukertjr dshukertjr changed the title await for the initial deeplink to be handled during auth initialize fix: await for the initial deeplink to be handled during auth initialize Oct 29, 2022
@dshukertjr dshukertjr merged commit ecf782a into main Oct 30, 2022
@dshukertjr dshukertjr deleted the fix/async-initial-deeplink branch October 30, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants