JWT
object JWT
class Object
trait Matchable
class Any
Value members
Concrete methods
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