tinjaw
08/29/2021, 11:38 PMScott P
08/29/2021, 11:38 PMScott P
08/29/2021, 11:40 PMtinjaw
08/29/2021, 11:40 PMPOSTGREST_ENDPOINT
?Scott P
08/29/2021, 11:41 PMhttps://your-project-id.supabase.io/rest/v1/
is the default endpoint for Postgrest. You might need to add ?apikey=your-postgrest-token
to the endtinjaw
08/29/2021, 11:43 PMYou might need to add ?apikey=your-postgrest-token to the end
. <<<< THAT is what I have spent the past 30 or so minutes looking for I guesstinjaw
08/29/2021, 11:45 PM"value": "Invalid authentication credentials"
tinjaw
08/29/2021, 11:45 PMtinjaw
08/29/2021, 11:50 PMtinjaw
08/29/2021, 11:50 PMScott P
08/29/2021, 11:51 PMjson
{
"iss": "supabase",
"iat": 1603968834,
"exp": 2550653634,
"aud": "",
"sub": "",
"role": "service_role"
}
3: In the 'verify signature' field, add your service-role JWT found in the dashboard.
4: The generated JWT is your API key
Alternatively, use the anon JSON from the link above, and add your public JWT key instead in the instructions above. It might even be possible to just use the API key that's listed in the dashboard instead of going through this process.
It might work, it might not - I can't remember the full technicalities of it.
Let's move this to a thread so it doesn't clutter up general any morejonny
08/30/2021, 9:15 AMjonny
08/30/2021, 9:35 AMjak
08/30/2021, 11:28 AMphilhawksworth
08/30/2021, 11:44 AMapollonian
08/30/2021, 12:59 PMHorseShoe
08/30/2021, 1:33 PMHorseShoe
08/30/2021, 1:34 PMlunex
08/30/2021, 2:01 PMteam
08/30/2021, 3:37 PMsilentworks
08/30/2021, 3:42 PMteam
08/30/2021, 3:50 PMScott Prins
08/30/2021, 3:54 PMjak
08/30/2021, 4:43 PMuser
08/30/2021, 4:51 PMburggraf
08/30/2021, 5:25 PMteam
08/30/2021, 6:25 PMexpires_at
property on the session data, or you can just decode the access_token
from the session data with a JWT decoding library, which will contain the same UTC timestamp as the expires_at
property, and then compare that value to the current UTC timestamp in seconds, so you can determine the validity of the token without a network request.user
08/30/2021, 6:28 PMjon.m
08/30/2021, 10:24 PMsilentworks
08/30/2021, 10:36 PM