-
Hello, and sorry for the (maybe) stupid question. If I use lucia with supabase, how should I use the other supabase features? For example let's say I want to send a query to my DB, if I create a supabase client will it recognize my authentification out of the box and use it for the query? It would sound a bit magical and I have no idea how to link this authentification with a "normal" supabaseClient :/ In any case, thank you so much for your work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Of course I find a clue by myself right after posting, while I didn't find it before... Using supabase, you can |
Beta Was this translation helpful? Give feedback.
-
In general, you should create API endpoints to validate the token and query the data, rather than querying it directly in the client. Though, it’s good to know you can use custom token with Supabase. But, I’m not sure if the token has to be created using your Supabase project JWT secret. |
Beta Was this translation helpful? Give feedback.
Of course I find a clue by myself right after posting, while I didn't find it before...
Using supabase, you can
supabase.auth.setAuth(youToken)
Which should basically solves it.