Skip to main content

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

ParameterParameterValid BlocksRequired
Supabase Project URLYour Supabase project URL, eg: https://yourprojecturl.supabase.coText Process Block GroupYes
API KeyYour public/anon Supabase API KeySecret Block GroupYes
User TokenThe Access Token (JWT) of a Supabase user. Will remove the `Bearer` prefix from an auth header if necessary.Semi-Secret Block GroupYes
Catch Errors to Data StructureCatch 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 GroupNo
Project Connection ConfigA Supabase connection configuration that was setup in the Databases panelText Process Block GroupNo