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
13 changes: 6 additions & 7 deletions projects/lib/src/oauth-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2168,13 +2168,12 @@ export class OAuthService extends AuthConfig implements OnDestroy {
throw new Error('loginUrl must use Http. Also check property requireHttps.');
}

this.createLoginUrl(additionalState, '', null, false, params).then(function (url) {
location.href = url;
})
.catch(error => {
console.error('Error in initAuthorizationCodeFlow');
console.error(error);
});
this.createLoginUrl(additionalState, '', null, false, params)
.then(this.config.openUri)
.catch(error => {
console.error('Error in initAuthorizationCodeFlow');
console.error(error);
});
}

protected async createChallangeVerifierPairForPKCE(): Promise<[string, string]> {
Expand Down