Version 4.1 Error in onCallback of lib/auth0.ts not work

I try to process error when initialize auth0, but the an error is show instead of redirect to error page


I created a ticket in github.
Please help me handle errors when initializing Auth0.

Hi @nguyen.cao

Welcome back to the Auth0 Community!

Have you tried to include the opened claim in the authorizationParameters?

  authorizationParameters: {
    audience: process.env.AUTH0_AUDIENCE,
    scope: 'openid asd'
  },

Thanks
Dawid

1 Like