I'm trying to store github profile info in a datab...
# javascript
t
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:
profile
is a svelte store i've configured to automatically sync its value to
localStorage
i'll try using the supabase auth system
I've figured it out! I just needed to sync the auth.user field to a store, and it's working perfectly