Skip to content

Commit

Permalink
Fix inconsistent logout function types (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Jun 23, 2023
1 parent c24ddea commit 0af1dd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth0-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export interface Auth0ContextInterface<TUser extends User = User>
* 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<void>;

/**
* After the browser redirects back to the callback page,
Expand Down
2 changes: 1 addition & 1 deletion src/auth0-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ const Auth0Provider = (opts: Auth0ProviderOptions): JSX.Element => {
[client]
);

const contextValue = useMemo(() => {
const contextValue = useMemo<Auth0ContextInterface<User>>(() => {
return {
...state,
getAccessTokenSilently,
Expand Down

0 comments on commit 0af1dd4

Please sign in to comment.