|
Hi Supabase community, I'm troubleshooting a password recovery issue in a small client-side HTML application using Supabase Auth and Expected behaviorA user requests a password recovery email, opens the recovery link, returns to the application, establishes a recovery session, and can then set a new password using Actual behaviorThe observed sequence is:
The failing Diagnostics already collected
Questions
I would appreciate help identifying the root cause before making code or configuration changes. I can provide the Supabase JS version and further sanitized diagnostic details if needed. Thank you for your time and help. |
Replies: 1 comment 1 reply
Architectural Diagnosis & Root Cause AnalysisThe symptoms you are observing ( 1. Why
|
Architectural Diagnosis & Root Cause Analysis
The symptoms you are observing (
GET /auth/v1/userreturning HTTP 500 accompanied by a browser CORS error) are closely linked and stem from how Supabase Auth (GoTrue) handles user retrieval and how the upstream API Gateway manages error responses.1. Why
GET /auth/v1/userReturns HTTP 500In the Supabase Auth architecture (GoTrue), the endpoint
GET /auth/v1/userexecutes the following internal flow:requireAuthentication):GoTrue extracts and validates the Bearer JWT from the incoming request headers.
maybeLoadUserOrSession):Once the JWT signature and claims are verified, GoTrue invokes
mode…