Skip to content

Commit

Permalink
Getidtokenclaims return type (#844)
Browse files Browse the repository at this point in the history
* Correct return type of getIdTokenClaims to allow undefined

* Revert indentation change

Co-authored-by: Steve Hobbs <steve.hobbs@auth0.com>
  • Loading branch information
jmac105 and Steve Hobbs authored Nov 30, 2021
1 parent 2911c24 commit b1d26e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth0Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export default class Auth0Client {
*/
public async getIdTokenClaims(
options: GetIdTokenClaimsOptions = {}
): Promise<IdToken> {
): Promise<IdToken | undefined> {
const audience = options.audience || this.options.audience || 'default';
const scope = getUniqueScopes(this.defaultScope, this.scope, options.scope);

Expand Down

0 comments on commit b1d26e7

Please sign in to comment.