diff --git a/src/app/api/auth/[auth0]/route.ts b/src/app/api/auth/[auth0]/route.ts index aeaf8b83..2023b606 100644 --- a/src/app/api/auth/[auth0]/route.ts +++ b/src/app/api/auth/[auth0]/route.ts @@ -16,7 +16,8 @@ const afterCallback: AfterCallbackAppRoute = async (_req, session) => { return session } -const onError: AppRouterOnError = async () => { +const onError: AppRouterOnError = async (_req, error) => { + console.error(error) const url = new URL(SHAPE_DOCS_BASE_URL + "/api/auth/forceLogout") return NextResponse.redirect(url) }