Skip to content

Is Supabase a good fit for Remix? #1610

Closed Answered by binajmen
binajmen asked this question in Q&A
Discussion options

You must be logged in to vote

Following a Discord thread, it seems there are several way to use the two of them (at least from the Postgres-RLS-stuff perspective):

  1. You implement the RLS rules as usual. In the loaders/actions you would use the anon_key and mock the user rights by using JWT-token-stuff (<-- that's the part I still need to figure out 😆),
  2. You forget about implementing the RLS rules, but rather choose to implement them in Remix (with plain JS). You'll still need to be able to retrieve the necessary info to ensure the user has the correct rights to access the data (<-- still need to figure out how too) while using the service_role (admin) key.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@binajmen
Comment options

@ccssmnn
Comment options

@binajmen
Comment options

@ccssmnn
Comment options

Comment options

You must be logged in to vote
4 replies
@afk-mario
Comment options

@binajmen
Comment options

@afk-mario
Comment options

@binajmen
Comment options

Answer selected by binajmen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants