Using autoRefreshToken with auth-helpers-sveltekit
I am not able to use autoRefreshToken functionality when initiating a client side supabase instance using this code, since auth isn't one of the options:
If I bypass the sveltekit helper and use "@supabase/supabase-js" it works, but that isn't what I want.
Any tips?
import { createClient } from '@supabase/auth-helpers-sveltekit'
export const supabase = createClient(import.meta.env.VITE_SUPABASE_URL, import.meta.env.VITE_SUPABASE_ANON_KEY, {
auth: {
autoRefreshToken: true
}
})
If I bypass the sveltekit helper and use "@supabase/supabase-js" it works, but that isn't what I want.
Any tips?