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.
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.