JwtHelper

org.mbari.raziel.etc.auth0.JwtHelper
See theJwtHelper companion object
class JwtHelper(issuer: String, signingSecret: String, expiration: Duration)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def createJwt(payload: Map[String, Any]): String

Value parameters

payload

A map of stuff to be encoded in the JWT

Attributes

Returns

A valid JWT

def verifyJwt(token: String): Either[Throwable, DecodedJWT]

Value parameters

token

A JWT

Attributes

Returns

Either a decoded JWT or an exception from verifying the JWT

Concrete fields

val verifier: JWTVerifier