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,