JWT

io.really.jwt.JWT$
object JWT

Attributes

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

Members list

Concise view

Value members

Concrete methods

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

generate jwt from string input

generate jwt from string input

Attributes

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

Attributes

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

Attributes

algorithm

that represent algorithm using on JWT

header

that represent data for JWT header

payload

that represent data for token

Returns:

String