core/lib/tern_from_ts/defs/jsonwebtoken.json
2017-05-14 13:22:31 +02:00

26 lines
753 B
JSON

{
"jsonwebtoken": {
"SignOptions": {
"algorithm": "string",
"expiresInMinutes": "number",
"expiresIn": "string",
"audience": "string",
"subject": "string",
"issuer": "string",
"noTimestamp": "bool"
},
"VerifyOptions": {
"algorithms": "[string]",
"audience": "string",
"issuer": "string",
"ignoreExpiration": "bool",
"maxAge": "string"
},
"VerifyCallbak": {},
"sign": "fn(payload: string, Buffer: ?, Object: ?, secretOrPrivateKey: string, Buffer: ?, options?: SignOptions) -> string",
"verify": "fn(token: string, secretOrPublicKey: string, Buffer: ?, callback?: VerifyCallbak)",
"decode": "fn(token: string) -> ?"
},
"!name": "jsonwebtoken"
}