auth-helpers icon indicating copy to clipboard operation
auth-helpers copied to clipboard

Magic-Link Sveltekit example: Auth not working with slow connection

Open philippviereck opened this issue 2 years ago • 3 comments

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.

philippviereck avatar Aug 09 '22 12:08 philippviereck

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

silentworks avatar Aug 11 '22 12:08 silentworks

Here's chrome: https://user-images.githubusercontent.com/105976309/184142941-a125f755-f377-40db-8b0b-45de424d002f.mov

In firefox it works for me too

philippviereck avatar Aug 11 '22 13:08 philippviereck

@philippviereck Is this still a thing after the latest release?

david-plugge avatar Sep 29 '22 19:09 david-plugge

I´m going to close this issue not for, feel free to reopen if this is still a problem using the latest release

david-plugge avatar Oct 25 '22 15:10 david-plugge