JWT

object JWT
class Object
trait Matchable
class Any

Value members

Concrete methods

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

generate jwt from string input

generate jwt from string input

Value Params
jwt

is the token

key

is secret key

Returns

JWTResult

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

encode jwt

encode jwt

Value Params
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

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 Params
algorithm

that represent algorithm using on JWT

header

that represent data for JWT header

payload

that represent data for token

Returns

String