Merged in chore/upgrade-next (pull request #3124)
Upgrade next@15.5.6 * chore: upgrade next@15.5.6 * chore: upgrade turborepo@2.6.1 * fix typings for scandic-web * fix: set correct type for pages * cleanup * fix more route.ts typing issues * Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/upgrade-next * explicitly import the types Approved-by: Linus Flood
This commit is contained in:
@@ -12,7 +12,7 @@ import { signIn } from "@/auth"
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
context: { params: Promise<{ lang: Lang }> }
|
||||
context: RouteContext<"/[lang]/login">
|
||||
) {
|
||||
const contextParams = await context.params
|
||||
const publicURL = getPublicURL(request)
|
||||
@@ -89,6 +89,10 @@ export async function GET(
|
||||
case Lang.sv:
|
||||
redirectUrlValue = env.SEAMLESS_LOGIN_SV
|
||||
break
|
||||
default:
|
||||
throw new Error(
|
||||
`Unsupported language for login: ${contextParams.lang}`
|
||||
)
|
||||
}
|
||||
const redirectUrl = new URL(redirectUrlValue)
|
||||
logger.debug(
|
||||
|
||||
Reference in New Issue
Block a user