diff --git a/src/core/oauth2-authorize.js b/src/core/oauth2-authorize.js index f09d379c..2e36010e 100644 --- a/src/core/oauth2-authorize.js +++ b/src/core/oauth2-authorize.js @@ -69,7 +69,7 @@ export default function authorize ( { auth, authActions, errActions, configs, au // pass action authorizeOauth2 and authentication data through window // to authorize with oauth2 - let callback; + let callback if (flow === "implicit") { callback = authActions.preAuthorizeImplicit } else if (authConfigs.useBasicAuthenticationWithAccessCodeGrant) {