Skip to content

Supbase query works, but API call returns empty result #28995

Discussion options

You must be logged in to vote

This is working now. The problem was that you need to pass JWT token through Flutterflow. In the header, make sure you spell the "Authorization" correctly (I had misspelled this) and create a variable something like the following: Authorization: Bearer [variableName]. Also, declare this variable at API level so that you can pass the JWT token from Supabase. This token can be retrieved from "Authenticated User" object. Once you pass this to API, the auth.uid() value will have correct userid and you can do RLS on that. Thank you all for helping!

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@gc-ft
Comment options

@sanjaychristian
Comment options

@sanjaychristian
Comment options

Answer selected by sanjaychristian
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants