initial
This commit is contained in:
6
apps/client/middleware/guest-only.ts
Normal file
6
apps/client/middleware/guest-only.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export default defineNuxtRouteMiddleware(() => {
|
||||
const { authenticated } = useAuth()
|
||||
|
||||
if (authenticated.value)
|
||||
return navigateTo('/projects')
|
||||
})
|
||||
Reference in New Issue
Block a user