Hi! I have a Next.js 14 app using Auth0 Universal Login. How can I handle errors in the Auth0 callback and redirect users to a /maintenance
route if something goes wrong?
Here’s my current route.ts
file:
import { handleAuth, handleProfile } from "@auth0/nextjs-auth0";
export const GET = handleAuth({
'silent': handleProfile({ refetch: true })
})
Thanks!