antoni-devlin / dvln.svelte

My personal website, built in Sveltekit.
https://dvln.xyz
0 stars 0 forks source link

Multiple GoTrueClient instances detected in the same browser context warning #31

Open antoni-devlin opened 8 months ago

antoni-devlin commented 8 months ago

Site throws this warning: Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.Issue Title.

This might be tied to the website sending what seems like a far too large number of requests to the Supabase Auth endpoint.

Some potential explanations and fixes to try in this reddit thread.

antoni-devlin commented 3 weeks ago

This might also be because I'm using both createClient and createBrowserClient in the same application, using them to create a supabase client in two places:

Fix could be to remove the standalone client in lib/supabaseclient.js and replace it with the browser client form the layout file.