0.0.1 • Published 3 years ago

rescript-jsonwebtoken v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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")