Skip to content

Commit

Permalink
feat: add decrypt option to getFields
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 22, 2020
1 parent 920eded commit ccd32e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/authInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,11 @@ export class AuthInfo extends AsyncCreatable<AuthInfo.Options> {

/**
* Get the authorization fields.
*
* @param decrypt Decrypt the fields.
*/
public getFields(): AuthFields {
return this.fields;
public getFields(decrypt?: boolean): AuthFields {
return decrypt ? this.authInfoCrypto.decryptFields(this.fields) : this.fields;
}

/**
Expand Down

0 comments on commit ccd32e2

Please sign in to comment.