Replies: 2 comments
-
|
File a support ticket, there was another issue on reddit i responded to and suggested restarting https://www.reddit.com/r/Supabase/comments/1v11ze6/comment/oyuev3g/?context=1&screen_view_count=2 but it appears it was not persistent |
Beta Was this translation helpful? Give feedback.
-
|
Given your notes, I would check two things to separate a client-side problem from a project/service-side one:
In the browser console, after sign-in: const { data } = await supabase.auth.getSession()
const token = data.session.access_token
const payload = JSON.parse(atob(token.split('.')[1].replace(/-/g, '+').replace(/_/g, '/')))
console.log({
iat: payload.iat,
iatUtc: new Date(payload.iat * 1000).toISOString(),
nowUtc: new Date().toISOString(),
skewSeconds: payload.iat - Math.floor(Date.now() / 1000),
})If
If it starts working after waiting, that strongly supports a small clock skew between Auth token issuance and the PostgREST validator. If it never works, then it may be a different JWT validation/config issue even though the error wording is about Since you are not minting custom JWTs and For the support ticket, I would include:
That gives Supabase enough evidence to check for clock skew or service synchronization on the project without needing your raw token. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Project region: Singapore / ap-southeast-1
Supabase support ticket: SU-427553
A fresh Supabase Auth session succeeds:
GET /auth/v1/user → HTTP 200
But an immediate request to the same project’s Data API fails:
GET /rest/v1/clients → HTTP 401
Response:
{
"code": "PGRST303",
"details": null,
"hint": null,
"message": "JWT issued at future"
}
Reproduced using:
We do not mint, modify, decode, or manually attach custom JWTs.
The frontend does not weaken JWT validation.
The Auth endpoint accepts the session, while PostgREST rejects the same fresh JWT.
Could this indicate project-specific clock skew or signing/auth synchronization between Auth and PostgREST?
Beta Was this translation helpful? Give feedback.
All reactions