-
Notifications
You must be signed in to change notification settings - Fork 489
Open
Labels
bugSomething isn't workingSomething isn't workingrepro neededIssue is missing a reproduction example.Issue is missing a reproduction example.supabase-jsRelated to the supabase-js library.Related to the supabase-js library.
Description
Describe the bug
Hi guys, I am trying to integrated Auth0 as third-party auth provider. I followed all the steps provided in the docs. However I am not getting the custom role claim from the token when I inspect is using https://jwt.io.
Some background for my setup. I am building a Nuxt + Supabase application, where supabase will be interacted with mostly in server side.
Here is the code snippet for Supabase Client.
return createClient<T>(
process.env.SUPABASE_URL ?? '',
process.env.SUPABASE_KEY ?? '',
{
accessToken: async () => {
return authHeader; //passing this from nitro header
},
}


Library affected
supabase-js
Reproduction
No response
Steps to reproduce
No response
System Info
System:
OS: macOS 15.6.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 494.36 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.13.1 - /Users/junaidrasheed/.nvm/versions/node/v22.13.1/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.9.2 - /Users/junaidrasheed/.nvm/versions/node/v22.13.1/bin/npm
bun: 1.2.1 - /Users/junaidrasheed/.bun/bin/bun
Deno: 2.5.2 - /Users/junaidrasheed/.deno/bin/deno
Browsers:
Brave Browser: 141.1.83.112
Chrome: 139.0.7258.155
Firefox: 111.0
Safari: 18.6
npmPackages:
@supabase/supabase-js: ^2.75.0 => 2.75.0
supabase: ^2.33.9 => 2.48.3
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Supabase JS Library issue and not an issue with the Supabase platform. If it's a Supabase platform related bug, it should likely be reported to supabase/supabase instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingrepro neededIssue is missing a reproduction example.Issue is missing a reproduction example.supabase-jsRelated to the supabase-js library.Related to the supabase-js library.