Skip to content

Commit 58a8132

Browse files
authored
response_types including 'code' gets a code_challenge
Every response_Type including 'code' needs a code_challenge.
1 parent c587f55 commit 58a8132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/lib/src/oauth-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
14181418
'&scope=' +
14191419
encodeURIComponent(scope);
14201420

1421-
if (this.responseType === 'code' && !this.disablePKCE) {
1421+
if (this.responseType.includes('code') && !this.disablePKCE) {
14221422
const [
14231423
challenge,
14241424
verifier

0 commit comments

Comments
 (0)