fix(auth): redirect callback to cabinet and align landing blocks

This commit is contained in:
Ruslan Bakiev
2026-04-21 12:46:47 +07:00
parent 7033df0fbc
commit 351125b51d
11 changed files with 258 additions and 152 deletions

View File

@@ -154,7 +154,8 @@ export default defineEventHandler(async (event) => {
if (normalizedPath === '/callback') {
await logto.handleSignInCallback(url.href)
await sendRedirect(event, localePrefix || '/', 302)
const clientareaPath = `${localePrefix}/clientarea`
await sendRedirect(event, clientareaPath || '/clientarea', 302)
return
}