I am getting this error using express openid connect on the return call to /callback. My config is:
expressInstance.use(
auth({
issuerBaseURL: process.env.AUTH0_ISSUER_BASE_URL,
baseURL: process.env.BASE_URL,
clientID: process.env.AUTH0_CLIENT_ID,
secret: process.env.SESSION_SECRET,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
authRequired: false,
auth0Logout: true,
authorizationParams: {
scope: 'openid profile email',
response_type: 'code',
audience: 'punchline/api',
state: true
}
}),
);
I am following the docs. Am i missing something in my config? I am just using res.oidc.login with a screen_hint of signup to redirect the user to the sign up page as part of the universal login experience.