fix(auth): redirect callback to cabinet and align landing blocks
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user