Supabase Auth refresh failing with 500: missing destination name scopes in *models.Session

Details:

Project: wbxhnyoxkfakjuzvhfrk

Endpoint: POST /token with grant_type=refresh_token

Error from logs: 500: missing destination name scopes in *models.Session

Impact: Session refresh fails, users are logged out and forced to re-login (OTP).

This looks like a GoTrue / SQLX schema mismatch (column scopes exists in auth.sessions but the Session model doesn’t have a matching field). Can you confirm and apply a fix or migration on your side?
Was this page helpful?