Enable using RLS without the usage of built-in Supabase Auth #2074
Unanswered
jcheese1
asked this question in
Feature Requests
Replies: 2 comments 1 reply
-
the approach described here should cover this use case: #1849 (comment) essentially:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@easy-street interesting. How would I pass JWT on a per call basis though? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
So I currently use Prisma with Supabase, and I do all the authorization via just a simple Session table that keeps track of logged in users. It would be great if I can implement RLS with a custom auth solution, like in my case.
I'm thinking of something like this:
on the side of Supabase.
I guess I can just have some sort of a middleware to check the above, but I think its safer to have it on the DB side.
I hope this makes sense!
Beta Was this translation helpful? Give feedback.
All reactions