Skip to content
/ rn-jwt Public

JSON Web Token sign and verify for React Native

License

Notifications You must be signed in to change notification settings

kacao/rn-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rn-jwt

JSON Web Token sign and verify for React Native without native lib bindings (hopefully).

Installation & Usage

npm install -s kacao/rn-jwt
const jwt = require('jwt');
let encoded = jwt.sign({test: 'test'}, 'secret');
try {
  let decoded = jwt.verify(encoded, 'secret');
} catch (err) {
  // failed to verify
  console.log(err);
}

About

JSON Web Token sign and verify for React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published