You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Describe the problem you'd like to have solved
The
onRedirectCallback
of Auth0Provider takes a function that has an argument ofAppState
. However, the type of AppState isn't easily available outside the library, which makes TypeScript work without usingany
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.The text was updated successfully, but these errors were encountered: