fix(webapp): localize footer/menu and harden auth routes

This commit is contained in:
Ruslan Bakiev
2026-04-21 11:16:27 +07:00
parent 54aac790ee
commit 84deb2d1bc
6 changed files with 74 additions and 24 deletions

View File

@@ -48,12 +48,20 @@ export const useAuth = () => {
}
const signIn = async (_redirectUri?: string) => {
if (import.meta.client) {
window.location.assign('/sign-in')
return
}
await navigateTo('/sign-in', { external: true })
}
const login = signIn
const signOut = async (_logoutRedirectUri?: string) => {
if (import.meta.client) {
window.location.assign('/sign-out')
return
}
await navigateTo('/sign-out', { external: true })
}