Skip to content

Conversation

@MuzzaiyyanHussain
Copy link

Description

Fixes #1792 — Ensures Auth0 and other OIDC providers’ namespaced claims
(e.g. https://example.com/roles) are parsed into user_metadata.

Changes

  • Updated decodeJWT() in helpers.ts to detect and flatten namespaced claims.
  • Added test verifying roles are extracted correctly.

Impact

  • Developers can now access Auth0-style custom claims via user.user_metadata.roles.

Checklist

@MuzzaiyyanHussain MuzzaiyyanHussain requested review from a team as code owners November 12, 2025 08:18
@coveralls
Copy link

coveralls commented Nov 12, 2025

Coverage Status

coverage: 95.367% (+13.8%) from 81.58%
when pulling 537756b on MuzzaiyyanHussain:fix-auth0-namespaced-claims
into 1371057 on supabase:master.

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

Labels

None yet

2 participants