JWT

io.really.jwt.JWT
object JWT

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JWT.type

Members list

Value members

Concrete methods

def decode(jwt: String, key: Option[String]): JWTResult

generate jwt from string input

generate jwt from string input

Value parameters

jwt

is the token

key

is secret key

Attributes

Returns

JWTResult

def encode(secret: String, payload: JsObject, header: JsObject, algorithm: Option[Algorithm]): String

encode jwt

encode jwt

Value parameters

algorithm

that represent algorithm using on JWT

header

that represent data for JWT header

payload

that represent data for token

secret

that is the secret key that use to sign token

Attributes

Returns

String

def encodeWithoutSecret(payload: JsObject, header: JsObject, algorithm: Option[Algorithm]): String

encode jwt with no verifying secret

encode jwt with no verifying secret

Value parameters

algorithm

that represent algorithm using on JWT

header

that represent data for JWT header

payload

that represent data for token

Attributes

Returns

String