gardner / react-oauth2-pkce

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

Missing crypto dependency #18

Open hle-skillz opened 3 years ago

hle-skillz commented 3 years ago

Since crypto is a built-in node module not meant for the browser: https://www.npmjs.com/package/crypto

does this project need to import crypto-js instead? https://www.npmjs.com/package/crypto-js

https://github.com/gardner/react-oauth2-pkce/blob/f5f0f278544031d3aac26e5accfe1c7bda7a6bd5/src/pkce.ts#L1

t-knapp commented 2 years ago

Take a look at this: https://github.com/gardner/react-oauth2-pkce/issues/33