Skip to content

Commit

Permalink
auth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Apr 6, 2024
1 parent 003f990 commit 9528ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/middleware/auth.global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export default defineNuxtRouteMiddleware((to, from) => {

const cookie = useCookie("jwt")
if (!cookie.value) {
navigateTo("/auth/login")
return navigateTo("/auth/login")
}
});

0 comments on commit 9528ddd

Please sign in to comment.