-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: getCurves is not a function #6
Comments
Hey @mauryakrishna Are you trying to run it in a browser? This library uses https://github.com/panva/jose which in turn uses node's New version of |
@maximivanov Thanks a lot for quick response. Yes, I was running it in browser in React application. In the mean time you update the |
Unfortunately I don't think there's a quick workaround. If you want to play with it, you'd need to
I've started working on the new version but I can't tell when it's going to be ready. |
@mauryakrishna if it's still relevant, I've just published a new version (beta tag for now). You can try it with Note if your React app is built with I managed to test it with React though (not using CRA): https://github.com/maximivanov/cognito-jwt-verifier/tree/feat/upgradeToJoseV3/example/react Let me know how it goes (or if you found another solution!). Cheers. |
@maximivanov Thanks for taking it so quick. I needed some solution urgently so I went ahead with other solution. But yes we are using CRA v4 so again I wont be able to use this one. |
Description
I just installed this package and starting my app. Before it could invoke the method it fails at import statement I think. It fails to start the app. I tried via
import
andrequire
both but made no difference.[Description of the bug or feature]
Could not find any solution for this seems I am first to encounter this.
The text was updated successfully, but these errors were encountered: