fix(webapp): localize footer/menu and harden auth routes
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user