Hacker News new | ask | show | jobs
by lh15 2020 days ago
Does the Supabase client library store the JWTs in localstorage?

How does the auth front end work?

1 comments

Our client library is completely modular, so the authentication part works with gotrue (Netlify's auth server). Our client library is here (and yes, stored in local storage): https://github.com/supabase/gotrue-js

> How does the auth front end work?

Once we authenticate the user, the JWT is passed as a header and you can use it in Postgres within Policies (for Row Level Security). We add some helper functions in an auth schema to make this easier