Skip to content

Commit cb64496

Browse files
fix: widen getTokenSilently overload return types to include undefined
1 parent 363fc68 commit cb64496

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Auth0Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ export class Auth0Client {
900900
*/
901901
public async getTokenSilently(
902902
options: GetTokenSilentlyOptions & { detailedResponse: true }
903-
): Promise<GetTokenSilentlyVerboseResponse>;
903+
): Promise<GetTokenSilentlyVerboseResponse | undefined>;
904904

905905
/**
906906
* Fetches a new access token and returns it.
@@ -909,7 +909,7 @@ export class Auth0Client {
909909
*/
910910
public async getTokenSilently(
911911
options?: GetTokenSilentlyOptions
912-
): Promise<string>;
912+
): Promise<string | undefined>;
913913

914914
/**
915915
* Fetches a new access token, and either returns just the access token (the default) or the response from the /oauth/token endpoint, depending on the `detailedResponse` option.

0 commit comments

Comments
 (0)