From 0af1dd461abb538c6b0fd53c4b257373f56646d9 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Fri, 23 Jun 2023 13:06:04 +0200 Subject: [PATCH] Fix inconsistent logout function types (#548) --- src/auth0-context.tsx | 2 +- src/auth0-provider.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth0-context.tsx b/src/auth0-context.tsx index d59d2068..d7acdb2c 100644 --- a/src/auth0-context.tsx +++ b/src/auth0-context.tsx @@ -127,7 +127,7 @@ export interface Auth0ContextInterface * If the `logoutParams.federated` option is specified, it also clears the Identity Provider session. * [Read more about how Logout works at Auth0](https://auth0.com/docs/logout). */ - logout: (options?: LogoutOptions) => void; + logout: (options?: LogoutOptions) => Promise; /** * After the browser redirects back to the callback page, diff --git a/src/auth0-provider.tsx b/src/auth0-provider.tsx index 623a0cf5..c1961551 100644 --- a/src/auth0-provider.tsx +++ b/src/auth0-provider.tsx @@ -267,7 +267,7 @@ const Auth0Provider = (opts: Auth0ProviderOptions): JSX.Element => { [client] ); - const contextValue = useMemo(() => { + const contextValue = useMemo>(() => { return { ...state, getAccessTokenSilently,