Skip to content

Commit

Permalink
style: add line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisHaftmann committed Aug 11, 2023
1 parent a53437a commit d5578c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/runtime/middleware/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,9 @@ export default defineNuxtRouteMiddleware((to) => {
const signInOptions: Parameters<typeof signIn>[1] = { error: 'SessionRequired', callbackUrl: determineCallbackUrl(authConfig, () => to.path) }
// @ts-ignore This is valid for a backend-type of `authjs`, where sign-in accepts a provider as a first argument
return signIn(undefined, signInOptions) as ReturnType<typeof navigateToAuthPages>
} else if (typeof metaAuth === 'object' && metaAuth.navigateUnauthenticatedTo) { return navigateTo(metaAuth.navigateUnauthenticatedTo) } else { return navigateTo(authConfig.provider.pages.login) }
} else if (typeof metaAuth === 'object' && metaAuth.navigateUnauthenticatedTo) {
return navigateTo(metaAuth.navigateUnauthenticatedTo)
} else {
return navigateTo(authConfig.provider.pages.login)
}
})

0 comments on commit d5578c9

Please sign in to comment.