File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
projects/angular-auth-oidc-client/src/lib Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ export interface OpenIdConfiguration {
177177 allowUnsafeReuseRefreshToken ?: boolean ;
178178 /** Disable validation for id_token expiry time */
179179 disableIdTokenValidation ?: boolean ;
180- /** Disabled PKCE support.
180+ /** Disables PKCE support.
181181 * Authorize request will be sent without code challenge.
182182 */
183183 disablePkce ?: boolean ;
Original file line number Diff line number Diff line change @@ -486,9 +486,14 @@ export class UrlService {
486486 }
487487
488488 private getCodeChallenge ( config : OpenIdConfiguration ) : Observable < string > {
489- if ( config . disablePkce ) return of ( null ) ;
489+
490+ if ( config . disablePkce ) {
491+ return of ( null ) ;
492+ }
493+
490494 // code_challenge with "S256"
491495 const codeVerifier = this . flowsDataService . createCodeVerifier ( config ) ;
496+
492497 return this . jwtWindowCryptoService . generateCodeChallenge ( codeVerifier ) ;
493498 }
494499
You can’t perform that action at this time.
0 commit comments