react-native-pure-jwt
react-native-pure-jwt copied to clipboard
RSxxx algorithms doesn't work.
The error object says key bytes can only be specified for HMAC signatures. So, please specify a PublicKey or PrivateKey instance.
What is the algorithm you're trying to use?
RS256
Then it will not work, the lib doesn't work with RS
algorithms yet...
Thanks for prompt reply. I will create a PR if I find a workaround.
You're welcome. One thing I wondered was to pass the relative path to the .pem
(I think), this path being a string, relative to the root of the app, which will be resolved on the native side. What do you think?
Actually I want to use some existing java code without having to reimplement it in javascript for practice. I have not written java code before but few copy pasting of snippets might get the job done. If I succeed I will create a PR.
How that went @pakkibokati2012? Confident about filling a PR?