Supabase - User from JWT
Overview
Fetches a Supabase user structure using a JWT
User JWT (JSON Web Token)
You can get the JWT from the response that is returned when a user is successfully logged in with the Supabase Login block. The token is called access_token
in the response.
The easiest way to get the JWT is put this block in the from
slot of a Set Data Structure
block and reference the access_token
from the Data Structure you set the response to.
Returns |
---|
Data Structure |
Parameters
Parameter | Parameter | Valid Blocks | Required |
---|---|---|---|
Supabase Project URL | Your Supabase project URL, eg: https://yourprojecturl.supabase.co | Text Process Block Group | Yes |
API Key | Your public/anon Supabase API Key | Secret Block Group | Yes |
User Token | The Access Token (JWT) of a Supabase user. Will remove the `Bearer` prefix from an auth header if necessary. | Semi-Secret Block Group | Yes |
Catch Errors to Data Structure | Catch errors from the Supabase Function call as a Data Structure and return them as the response value to enable manual error handling. If turned on errors will not get caught in a Try-Catch block. | Boolean Block Group | No |
Project Connection Config | A Supabase connection configuration that was setup in the Databases panel | Text Process Block Group | No |