Typescript typing inconsistencies for the logout function
Mgrdich opened this issue · 1 comments
Mgrdich commented
Checklist
- The issue can be reproduced in the auth0-react sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
auth0-react/src/auth0-provider.tsx
Lines 199 to 200 in bcfd219
logout here is a promise , while when we use the hook to retrieve it is not typed as such , and we will end up with type inconsistencies
auth0-react/src/auth0-context.tsx
Line 130 in bcfd219
why they are different is it intentional ?
Reproduction
- Check the interface typing
- Check the code that is run with the actual provider
Additional context
No response
auth0-react version
2.1.0
React version
18.2.0
Which browsers have you tested in?
Other
frederikprijck commented
Thanks, I opened a PR to address this.