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

TypeError: auth0Client.logout is not a function #3

Open
FrankMa1 opened this issue Feb 1, 2020 · 0 comments
Open

TypeError: auth0Client.logout is not a function #3

FrankMa1 opened this issue Feb 1, 2020 · 0 comments

Comments

@FrankMa1
Copy link

FrankMa1 commented Feb 1, 2020

Hello,

I am getting this kind of error. The rest works well.

Could you help me

TypeError: auth0Client.logout is not a function

 const getTokenSilently = (options?: GetTokenSilentlyOptions) =>
  118 |   auth0Client!.getTokenSilently(options)
  119 | 
> 120 | const logout = (options?: LogoutOptions) =>
      | ^  121 |   auth0Client!.logout(options)
  122 | 
  123 | const getIdTokenClaims = (options?: getIdTokenClaimsOptions) =>
onLogoutClick
src/components/Menu.tsx:80
  77 | 
  78 | const onLogoutClick: EventHandler<SyntheticEvent<HTMLAnchorElement>> = (e) => {
  79 |   e.preventDefault()
> 80 |   logout()
     | ^  81 | }
  82 | 
  83 | return (

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant