Skip to content

fix(auth): handle Supabase auth check failures - #180

Open
techykaif wants to merge 2 commits into
StudentSuite:mainfrom
techykaif:fix/auth-check-rejection
Open

fix(auth): handle Supabase auth check failures#180
techykaif wants to merge 2 commits into
StudentSuite:mainfrom
techykaif:fix/auth-check-rejection

Conversation

@techykaif

Copy link
Copy Markdown
Contributor

What this changes

Fixes #141 by handling rejected Supabase getUser() promises in the navbar and map.

When the auth request fails because of an offline visitor, expired session refresh, or Supabase outage, the UI now falls back to signed-out state instead of producing an unhandled promise rejection.

Type of change

  • New public place(s)
  • New or updated benefit guide
  • New or updated resource link
  • Code or fix
  • Docs

Proof (required for new public places)

Not applicable. This PR does not add or modify any public places.

Checklist

  • The site hosts no copyrighted files; resource and paper changes are links only.
  • No em dashes in any copy.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@techykaif is attempting to deploy a commit to the studentsuite Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: supabase.auth.getUser() promises have no .catch — unhandled rejection on network failure

1 participant