You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module SignatureDecoratorUtils is using base64url package which apparently doesn't work on React Native. There is an issue about that in package repo brianloveswords/base64url#50.
I looked into the code and the problem is probably dependency on Buffer which is a globally available object in Node.js. I see two solutions:
Implement functionality on our own.
Use a different npm package with support for the web and React Native platform.
In both cases, I would suggest introducing a class JsonEncoder which would hide implementation details and provide the same API across the framework independently on a particular package.
The text was updated successfully, but these errors were encountered:
Module
SignatureDecoratorUtils
is using base64url package which apparently doesn't work on React Native. There is an issue about that in package repo brianloveswords/base64url#50.I looked into the code and the problem is probably dependency on
Buffer
which is a globally available object in Node.js. I see two solutions:In both cases, I would suggest introducing a class
JsonEncoder
which would hide implementation details and provide the same API across the framework independently on a particular package.The text was updated successfully, but these errors were encountered: