Skip to content

Commit

Permalink
chore: update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Jan 30, 2025
1 parent 0e0b9ae commit c58cf40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .changeset/sour-foxes-sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineNuxtRouteMiddleware(to => {
const { userId } = useAuth();

if (userId.value && isProtectedRoute(to)) {
// Add custom logic to run before redirecting
return navigateTo('/sign-in');
}
});
Expand Down

0 comments on commit c58cf40

Please sign in to comment.