Merge branch 'dev'
This commit is contained in:
commit
f943efee0b
1 changed files with 3 additions and 0 deletions
|
@ -50,7 +50,10 @@ export default authMiddleware({
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (!auth.userId && !auth.isPublicRoute) {
|
||||
// This is annoying...
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-explicit-any
|
||||
return redirectToSignIn({ returnBackUrl: req.url });
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue