Want to use Supabase Storage with other Auth (custom JWT) #11406
Unanswered
zackdotcomputer
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Right now I'm using clerk.dev's Auth solution (per Supabase's instructions: https://supabase.com/docs/guides/integrations/clerk). However, it's currently not possible to use Supabase Storage with these users, because the
storage.objectstable definesowneras a uuid FK field to theauth.userstable'sid. The Supabase+Clerk integration, meanwhile, uses a JWT generated by Clerk as the bearer token, which has asubvalue that is not auuidnor is it in theauth.userstable.It would be great if we could edit the
storage.objectsschema so that we could loosen the definition of theownercolumn and define our own RLS restrictions there. As-is, I'm going to have to split my app's storage out to a solution like S3, when I had been hoping to get everything done within Supabase.All reactions