AxaFrance / oidc-client

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

Typescript errors when importing vanilla #887

Open hagenderouen opened 1 year ago

hagenderouen commented 1 year ago
    You can do like in that file https://github.com/AxaGuilDEv/react-oidc/blob/master/packages/react/src/oidc/ReactOidc.tsx

Originally posted by @guillaume-chervet in https://github.com/AxaGuilDEv/react-oidc/issues/873#issuecomment-1259972906

I'm receiving Typescript errors when I import the vanilla api.

guillaume-chervet commented 1 year ago

Hi @hagenderouen , thank you very much for you issue. Definitly yes. I will start to clean vanilla library and add a full demo.

guillaume-chervet commented 1 year ago

hi @hagenderouen, which error do you get?

hagenderouen commented 1 year ago

hi @hagenderouen, which error do you get?

Numerous. When importing vanillaOidc, I'm receiving multiple type check errors.

guillaume-chervet commented 1 year ago

Hi @hagenderouen,

the version 6.10.1 fixed that :) than you very much for the feedback. I have added a demo there : https://github.com/AxaGuilDEv/react-oidc/tree/master/packages/vanilla-demo

Does it work for you?

hagenderouen commented 1 year ago

Still experiencing type errors with v6.10.18

guillaume-chervet commented 1 year ago

hi @hagenderouen , do You still have this issue?