Skip to content

Commit

Permalink
fix: simplify _validateIdTokenAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pamapa committed Nov 22, 2021
1 parent 27db141 commit 84935b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ResponseValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ export class ResponseValidator {
if (expires_in) response.expires_in = Number(expires_in);
if (response.id_token) {
this._logger.debug("_processCode: token response successful, processing id_token");
return this._validateIdTokenAttributes(state, response, response.id_token);
return this._validateIdTokenAttributes(response, response.id_token);
}

this._logger.debug("_processCode: token response successful, returning response");
return response;
}

protected async _validateIdTokenAttributes(state: SigninState, response: SigninResponse, id_token: string): Promise<SigninResponse> {
protected _validateIdTokenAttributes(response: SigninResponse, id_token: string): SigninResponse {
this._logger.debug("_validateIdTokenAttributes: Decoding JWT attributes");

const payload = JwtUtils.decode(id_token);
Expand Down

0 comments on commit 84935b2

Please sign in to comment.