gardner / react-oauth2-pkce

React auth provider that works with AWS cognito PKCE🛡️🔒
49 stars 57 forks source link

Fix issue "Can't resolve 'crypto'" #48

Open christoph-bittmann opened 2 years ago

christoph-bittmann commented 2 years ago

To make these library usabled in projects that uses React 17 or higher (see discussion here: https://www.npmjs.com/package/crypto As discussed in https://github.com/gardner/react-oauth2-pkce/issues/33), I replaced nodes build-in crypto module, that was not meant for the browser, with window.crypto object. Additionally dependencies was updated and cleaned up, ESLint config and linting errors was fixed. Finally I also rewrite the unittest for AuthService, because it fails bevore.

albertwangnz commented 1 year ago

Hi @gardner any updates? Thanks.