Next JS Jwt Expire 500 error

I am using the following in a Next JS application…

import { UserProvider } from “@auth0/nextjs-auth0/client”;

<UserProvider>
  <AxiosInstanceProvider>
    <Layout>
      <Component {...pageProps} />
    </Layout>
  </AxiosInstanceProvider>
</UserProvider>

When my JWT expires I get a 500 error. I think it should redirect to the login route if the JWT has expired?

Thanks!

Hey there!

In order to handle that most effectively I would ask you to raise it as a GitHub issue here:

so we can talk directly with the SDK maintainers on that front. once you have a link to it you can share it here so we can ping them. Thank you!