Skip to content

Commit

Permalink
Disables loading user settings after authenticating using PKCE provid…
Browse files Browse the repository at this point in the history
…er (#2318)
  • Loading branch information
mvilanova authored Jul 6, 2022
1 parent bca5d43 commit aab7f30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/dispatch/static/dispatch/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ 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)
.then(function () {
return userSettings.load()
})
.then(next)
pkceAuthProvider.login(to, from, next)
} else {
// defaults to none, allows custom providers
customAuthProvider
Expand Down

0 comments on commit aab7f30

Please sign in to comment.