Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent logout function types #548

Merged
merged 2 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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