Skip to main content
Solved

Authentication wrapper


Browser is none too happy: https://github.com/cognitedata/auth-wrapper/issues/19

Best answer by omarakabbal

Hi Henning,

Thanks for your patience, here is the npm package for the react-auth-wrapper: https://www.npmjs.com/package/@cognite/react-auth-wrapper. Any feedback would be highly appreciated!

Kindest Regards

Omar

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img
  • Practitioner
  • 8 replies
  • June 16, 2022

Hi Henning, we are aware of this issue and we are working on a fix asap.


Forum|alt.badge.img
  • Practitioner
  • 8 replies
  • Answer
  • August 8, 2022

Hi Henning,

Thanks for your patience, here is the npm package for the react-auth-wrapper: https://www.npmjs.com/package/@cognite/react-auth-wrapper. Any feedback would be highly appreciated!

Kindest Regards

Omar


It’s looking really good. Made my job a lot easier. I created an issue on the repository. Nothing breaking, but I had to make a small workaround.


For practical reasons I would like access to CogniteClient outside of React. What is the recommended way of achieving this while maintaining a single source of truth for authentication?

Edit: Nvm… It was just the first 401 that was tripping me up. .authenticate() fixed it.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings