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

User and session are fetch each time we're focusing the tab #163

Closed
larbish opened this issue Mar 3, 2023 — with Volta.net · 2 comments · Fixed by #222
Closed

User and session are fetch each time we're focusing the tab #163

larbish opened this issue Mar 3, 2023 — with Volta.net · 2 comments · Fixed by #222
Assignees
Labels
bug Something isn't working

Comments

Copy link
Collaborator

larbish commented Mar 3, 2023

No description provided.

@casio
Copy link

casio commented Mar 8, 2023

Actually, both requests - POST /session and GET /user - are dispatched twice on each focus event.
When logged in, you can see this on the demo: https://n3-supabase.netlify.app/

(which is having its auth callback URL set to http://localhost:3000 currently I believe, so users currently cannot login)

@j4w8n
Copy link

j4w8n commented Jun 1, 2023

Likely due to gotrue-js behavior. There is a PR to stop emitting SIGNED_IN events on tab focus.

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

Successfully merging a pull request may close this issue.

3 participants