AxaFrance / oidc-client

Light, Secure, Pure Javascript OIDC (Open ID Connect) Client. We provide also a REACT wrapper (compatible NextJS, etc.).
MIT License
597 stars 160 forks source link

missing return types #729

Closed Snazzie closed 2 years ago

Snazzie commented 2 years ago

Issue and Steps to Reproduce

useOidcIdToken and useOidcAccessToken has return type of any.

Versions

@axa-fr/react-oidc-context 4.3.2

Screenshots

Expected

return value to be typed.

Actual

has return type of any

Additional Details

guillaume-chervet commented 2 years ago

Yes definitively, it must be added.

guillaume-chervet commented 2 years ago

Thank you for the feedback :)

guillaume-chervet commented 2 years ago

Hi @Snazzie, I think the last version resolve the types issues. Have you tried it?

guillaume-chervet commented 2 years ago

Hi @Snazzie , i close the issue. Thank you very much for thz pullrequest. Feel free to reopen it if anything is missing.