11 lines
294 B
TypeScript
11 lines
294 B
TypeScript
![]() |
function isAuthenticated(): boolean {
|
||
|
return false;
|
||
|
}
|
||
|
// ---cut---
|
||
|
export default defineNuxtRouteMiddleware((to, from) => {
|
||
|
// isAuthenticated() is an example method verifying if a user is authenticated
|
||
|
// if (isAuthenticated() === false) {
|
||
|
// return navigateTo("/login");
|
||
|
// }
|
||
|
});
|