I'm trying to store github profile info in a database using the JS api in a sveltekit page endpoint, but it doesn't seem to work. I've been told it might have something to do with SSR and
window
?
my code is here:
TheOnlyTails
05/22/2022, 3:31 PM
profile
is a svelte store i've configured to automatically sync its value to
localStorage
TheOnlyTails
05/22/2022, 3:43 PM
i'll try using the supabase auth system
TheOnlyTails
05/23/2022, 3:12 PM
I've figured it out! I just needed to sync the auth.user field to a store, and it's working perfectly