Skip to content

Commit

Permalink
Makes eslint happy (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvilanova authored Jul 6, 2022
1 parent b9ca15f commit bca5d43
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/dispatch/static/dispatch/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,20 @@ router.beforeEach((to, from, next) => {
if (authProviderSlug === "dispatch-auth-provider-basic") {
basicAuthProvider.login(to, from, next)
} else if (authProviderSlug === "dispatch-auth-provider-pkce") {
pkceAuthProvider.login(to, from, next)
pkceAuthProvider
.login(to, from, next)
.then(function () {
return userSettings.load()
}).then(next)
})
.then(next)
} else {
// defaults to none, allows custom providers
customAuthProvider.login(to, from, next)
customAuthProvider
.login(to, from, next)
.then(function () {
return userSettings.load()
}).then(next)
})
.then(next)
}
} else {
userSettings.load().then(next)
Expand Down

0 comments on commit bca5d43

Please sign in to comment.