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

Add Typescript Types #14

Open
pascalkania opened this issue Dec 23, 2021 · 2 comments
Open

Add Typescript Types #14

pascalkania opened this issue Dec 23, 2021 · 2 comments

Comments

@pascalkania
Copy link

hey guys,

to make the library compatible with typescript, it would be nice if the specific types were generated for it.

the following link contains a more detailed description of how to generate them with typescript.
https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html

otherwise i can also do the work, please just let me know ;)

@sawi
Copy link

sawi commented Jan 3, 2022

@pascalkania you are right, a deeper compatibility with typescript will be great and we are currently working on this. It's great that you want to support us with this, if you want I can connect you with our development team ;-)

@pascalkania
Copy link
Author

thank you @sawi , but the types have already been added.

I also have noticed that the library oidc-client-js is used internally. Since last year this library will not be maintained any more.

As an alternative there is a fork which is also completely based on Typescript. You can find it under the following URL: https://github.com/authts/oidc-client-ts

i also found that there is a library for react which is also based on this fork, you can find it here: https://github.com/authts/react-oidc-context

I just wanted to inform you about it, in case you haven't heard about it yet.

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

2 participants