rescript-jsonwebtoken

0.0.1 • Public • Published

Rescript binding for Jsonwebtoken

Experimental.

How to install

npm install rescript-jsonwebtoken jsonwebtoken

and add rescript-jsonwebtoken to the bsconfig.json's bs-dependencies:

	{
		"bs-dependencies": [
+			"rescript-jsonwebtoken"
		]
	}

How to use

This is still experimental.

open Jwt
let token = sign({"foo":"bar"}, "secretKey")
let isValid = verify(token, "secretKey")

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i rescript-jsonwebtoken

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

1.57 kB

Total Files

4

Last publish

Collaborators

  • el1t1st