Skip to content
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

Recovery session should happen automatically #11

Closed
phamhieu opened this issue Jul 30, 2021 · 2 comments
Closed

Recovery session should happen automatically #11

phamhieu opened this issue Jul 30, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@phamhieu
Copy link
Member

Bug report

Describe the bug

Right now recovery session is not called under Supabase.initialize which is bad because users won't have access to session, user on app start

Expected behavior

User should be able to access user and session after Supabase.initialize if there is persisted session info.

Additional context

Related #10

@phamhieu phamhieu added the bug Something isn't working label Jul 30, 2021
@i-Senku
Copy link

i-Senku commented Jul 30, 2021

auth.currentUser
auth.user()
auth.session()
  • The functions are confusing.
  • Instead, only the auth.session() function should be able to access the user value and session information from within this function.
  • session information should be saved with hive.

@phamhieu @bdlukaa If you want I would like to support with pr.

@bdlukaa
Copy link
Collaborator

bdlukaa commented Aug 3, 2021

Fixed in #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants