webcrypto-jwt | JSON Web Tokens verify/sign implementation | Authentication library
kandi X-RAY | webcrypto-jwt Summary
kandi X-RAY | webcrypto-jwt Summary
JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert a string to a Uint8Array .
- Check if string is a string
- Check if a function is a function
- Check if argument is an object
webcrypto-jwt Key Features
webcrypto-jwt Examples and Code Snippets
Community Discussions
Trending Discussions on webcrypto-jwt
QUESTION
I'm making a Cordova app with backbone and my goal was to achieve socket authentification with a JSON Web Token (JWT).
To sign my JWT, I used webcrypto-jwt and it worked well when using the app in the browser.
Then I tried the app on my mobile and BBAAMM...
webcrypto-jwt uses the browser's window.crypto.subtle
module.
ANSWER
Answered 2017-Jan-18 at 08:02WebCryptographyApi is not supported on Android WebView, and webcrypto-shim is not targeted to this component
The library is targeted to fix these browsers having prefixed and buggy webcrypto api implementations:
Internet Explorer 11, Mobile Internet Explorer 11, Safari 8+, iOS Safari 8+.
So you are getting the expected behaviour. I think window.crypto
that is showing Cordova is the old implementation.
If you need key storage I suggest use the Android native keystore (or iOS if you build for it). If you are looking for cryptographic function, include a pure javascript library
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webcrypto-jwt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page