rafaelwendel / phpsupabase

PHP Client to use Supabase
MIT License
187 stars 17 forks source link

JWT Expired #15

Closed manishshahi1 closed 1 year ago

manishshahi1 commented 1 year ago

How to solve the following error:

**error: `POST https://xxx.supabase.co/rest/v1/yyy` resulted in a `401 Unauthorized` response:
{"code":"PGRST301","details":null,"hint":null,"message":"JWT expired"}**
rafaelwendel commented 1 year ago

Hi @manishshahi1

By default, the JWT is set to expire in 3600 seconds (1 hour). After this downtime, you need to sign in again and generate a new bearerToken.

To change the JWT expiry limit, go to Project Settings and then Auth.