@bryso Are you console logging exactly the same thing as I do? (auth0)
You can just copy my code I posted earlier
As mine object has values for all and very different format and different keys
Only middleware.ts in root is required which is using auth0 defined in /lib or /utils (defining it so you can also use it in code) together with those env vars AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_SECRET and APP_BASE_URL
Make sure you are also running version 15 of Nextjs and version 4 of @auth0/nextjs-auth0. Maybe reinstall node_modules could help if you have everything set up.
If nothing helps, try it in the empty project.
middleware Auth0Client {
transactionStore: TransactionStore {
secret: <redacted>,
cookieConfig: {
httpOnly: true,
sameSite: 'lax',
secure: false,
path: '/',
maxAge: 3600
}
},
sessionStore: StatelessSessionStore {
SESSION_COOKIE_NAME: '__session',
cookieConfig: { httpOnly: true, sameSite: 'lax', secure: false, path: '/' },
secret: <redacted>,
rolling: true,
absoluteDuration: 2592000,
inactivityDuration: 604800,
store: undefined
},
authClient: AuthClient {
fetch: [Function],
jwksCache: {},
transactionStore: TransactionStore {
secret: <redacted>,
cookieConfig: {
httpOnly: true,
sameSite: 'lax',
secure: false,
path: '/',
maxAge: 3600
}
},
sessionStore: StatelessSessionStore {
SESSION_COOKIE_NAME: '__session',
cookieConfig: { httpOnly: true, sameSite: 'lax', secure: false, path: '/' },
secret: <redacted>,
rolling: true,
absoluteDuration: 2592000,
inactivityDuration: 604800,
store: undefined
},
issuer: 'https://dev-<redacted>.eu.auth0.com',
clientMetadata: { client_id: '<redacted>' },
clientSecret: '<redacted>',
redirectUri: URL { },
authorizationParameters: { scope: 'openid profile email offline_access' },
appBaseUrl: 'http://localhost:3000',
signInReturnToPath: '/',
beforeSessionSaved: undefined,
onCallback: [Function: defaultOnCallback]
}
}