Skip to content

Commit

Permalink
response_types including 'code' gets a code_challenge
Browse files Browse the repository at this point in the history
Every response_Type including 'code' needs a code_challenge.
  • Loading branch information
nick1699 authored Apr 29, 2020
1 parent c587f55 commit 58a8132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/lib/src/oauth-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
'&scope=' +
encodeURIComponent(scope);

if (this.responseType === 'code' && !this.disablePKCE) {
if (this.responseType.includes('code') && !this.disablePKCE) {
const [
challenge,
verifier
Expand Down

0 comments on commit 58a8132

Please sign in to comment.