Created
March 13, 2025 00:03
-
-
Save cgimenes/757a78714b422db10f9330f48b6d77ad to your computer and use it in GitHub Desktop.
Impersonate a Supabase user using SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN; | |
SET LOCAL request.jwt.claim.sub = '<uid>'; | |
SET LOCAL ROLE authenticated; | |
SELECT * FROM photos LIMIT 10; | |
COMMIT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment