Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/runtime/middleware/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export default defineNuxtRouteMiddleware((to) => {
return
}

// We do not want to block the login page when the local provider is used
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') {
const loginRoute: string | undefined = authConfig.provider?.pages?.login
if (loginRoute && loginRoute === to.path) {
return
Expand Down