pass roles to mcp

This commit is contained in:
2025-12-08 19:02:12 +01:00
parent fbb050056f
commit 49ea3c1a99
8 changed files with 84 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
import { Auth0Client, filterDefaultIdTokenClaims } from '@auth0/nextjs-auth0/server';
export const auth0 = new Auth0Client({
async beforeSessionSaved(session, idToken) {
async beforeSessionSaved(session) {
return {
...session,
user: {