We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a50f4 commit 8cbe629Copy full SHA for 8cbe629
src/runtime/middleware/auth.ts
@@ -66,8 +66,8 @@ export default defineNuxtRouteMiddleware((to) => {
66
return
67
}
68
69
- // We do not want to block the login page when the local provider is used
70
- if (authConfig.provider?.type === 'local') {
+ // We do not want to block the login page when the local/refresh provider is used
+ if (authConfig.provider?.type === 'local' || authConfig.provider?.type === 'refresh') {
71
const loginRoute: string | undefined = authConfig.provider?.pages?.login
72
if (loginRoute && loginRoute === to.path) {
73
0 commit comments