Updated

PostgREST error: PGRST303 "JWT issued at future"

Requests to PostgREST endpoints intermittently fail with an HTTP 401 status code and the error PGRST303: "JWT issued at future". This is likely not an issue with your implementation. This error is normally caused by a known clock skew validation bug in older PostgREST releases when evaluating newly minted JWTs.

To resolve this issue, upgrade your Supabase project to update PostgREST to version 14.18 or newer:

  1. Open your project in the Supabase Dashboard.
  2. Navigate to Project Settings > Infrastructure.
  3. Under Project upgrades, check for available maintenance or infrastructure upgrades and apply them.

For detailed upgrade instructions and maintenance scheduling, see the platform upgrading documentation.

If you are experiencing this error on PostgREST 14.18 or newer, we recommend reviewing your use of JWTs, and may find the JWT documentation helpful.

Go to the GitHub discussion