diff --git a/src/Auth0Client.ts b/src/Auth0Client.ts index 3ff27ebdb..b40ae782f 100644 --- a/src/Auth0Client.ts +++ b/src/Auth0Client.ts @@ -56,7 +56,8 @@ import { OAuthTokenOptions, CacheLocation, LogoutUrlOptions, - User + User, + IdToken } from './global'; // @ts-ignore @@ -419,10 +420,10 @@ export default class Auth0Client { * (the SDK stores a corresponding ID Token with every Access Token, and uses the * scope and audience to look up the ID Token) * - * @typeparam TUser The type to return, has to extend {@link User}. Defaults to {@link User} when omitted. + * @typeparam TUser The type to return, has to extend {@link User}. * @param options */ - public async getUser( + public async getUser( options: GetUserOptions = {} ): Promise { const audience = options.audience || this.options.audience || 'default'; @@ -452,7 +453,7 @@ export default class Auth0Client { * * @param options */ - public async getIdTokenClaims(options: GetIdTokenClaimsOptions = {}) { + public async getIdTokenClaims(options: GetIdTokenClaimsOptions = {}): Promise { const audience = options.audience || this.options.audience || 'default'; const scope = getUniqueScopes(this.defaultScope, this.scope, options.scope); @@ -827,8 +828,8 @@ export default class Auth0Client { nonceIn, code_challenge, options.redirect_uri || - this.options.redirect_uri || - window.location.origin + this.options.redirect_uri || + window.location.origin ); const url = this._authorizeUrl({