Jwt

class Jwt(val token: DecodedJwt) : Identity

The Identity produced by JWT authentication.

Wraps the verified token so handlers and authorization rules can read claims without re-parsing. name is the sub claim; when sub is absent, name is an empty string. Roles are resolved separately via JwtRolesMapper and land on io.github.mzlnk.javalin.security.authentication.Authentication.roles.

Constructors

Link copied to clipboard
constructor(token: DecodedJwt)

Properties

Link copied to clipboard
open override val name: String
Link copied to clipboard