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

Make AppState type more accessible #119

Closed
palfrey opened this issue Sep 23, 2020 · 1 comment · Fixed by #120
Closed

Make AppState type more accessible #119

palfrey opened this issue Sep 23, 2020 · 1 comment · Fixed by #120
Labels
bug Something isn't working

Comments

@palfrey
Copy link

palfrey commented Sep 23, 2020

Describe the problem you'd like to have solved

The onRedirectCallback of Auth0Provider takes a function that has an argument of AppState. However, the type of AppState isn't easily available outside the library, which makes TypeScript work without using any harder.

Describe the ideal solution

import { AppState } from '@auth0/auth0-react' should just work, via exporting AppState.

Alternatives and current workarounds

import { AppState } from '@auth0/auth0-react/dist/auth0-provider' works, but is annoying.

@adamjmcgrath
Copy link
Contributor

Good point... thanks @palfrey

@adamjmcgrath adamjmcgrath added the bug Something isn't working label Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants