auth-helpers
auth-helpers copied to clipboard
Magic-Link Sveltekit example: Auth not working with slow connection
Bug report
Describe the bug
Using the sveltekit-magic-link
example and throttling the connection in the chrome-devtools network tab, causes the login to quietly fail. Nothing happens, you're stuck on the loading animation from the example (/logging-in
does not redirect to /dashboard
) . Both slow 3G
and fast 3G
cause this.
To Reproduce
See above
Expected behavior
Login should work (even with slow connection)
System information
- OS: macOS
- Browser: Chrome
- Version of supabase-js: 1.35.6, "@supabase/auth-helpers-svelte": "0.4.5", "@supabase/auth-helpers-sveltekit": "0.6.8",
- Version of Node.js: v18.5.0
Additional context
I was not able to find the cause, but from observing the network calls one can notice that the /callback
endpoint does not get called when using one of the throttled network speeds.
I'm unable to replicate this, you can see from my video below that everything loads on Regular 3G speed.
https://user-images.githubusercontent.com/79497/184130679-bdf62bf9-77c5-480c-84ea-60b27fd64902.mp4
Here's chrome: https://user-images.githubusercontent.com/105976309/184142941-a125f755-f377-40db-8b0b-45de424d002f.mov
In firefox it works for me too
@philippviereck Is this still a thing after the latest release?
I´m going to close this issue not for, feel free to reopen if this is still a problem using the latest release