From c3d9036d631e72b966df5afaa9a621c27013dc02 Mon Sep 17 00:00:00 2001 From: ramnique <30795890+ramnique@users.noreply.github.com> Date: Mon, 3 Feb 2025 20:55:58 +0530 Subject: [PATCH] auth0: always show univeseral login --- apps/rowboat/app/api/auth/[auth0]/route.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/rowboat/app/api/auth/[auth0]/route.ts b/apps/rowboat/app/api/auth/[auth0]/route.ts index aa8b000c..d74b427c 100644 --- a/apps/rowboat/app/api/auth/[auth0]/route.ts +++ b/apps/rowboat/app/api/auth/[auth0]/route.ts @@ -1,3 +1,10 @@ -import { handleAuth } from '@auth0/nextjs-auth0'; +// pages/api/auth/[auth0].js +import { handleAuth, handleLogin } from '@auth0/nextjs-auth0'; -export const GET = handleAuth(); \ No newline at end of file +export const GET = handleAuth({ + login: handleLogin({ + authorizationParams: { + prompt: 'login' + } + }) +}); \ No newline at end of file