JwtUtils

object JwtUtils

Utility object for parsing JWT (JSON Web Token) tokens. Extracts claims from the payload section of a JWT.

Types

Link copied to clipboard
@Serializable
data class JwtPayload(val userId: String? = null, val username: String? = null, val sid: String? = null, val credentialId: String? = null, val iss: String? = null, val sub: String? = null, val exp: Long? = null, val nbf: Long? = null, val iat: Long? = null, val jti: String? = null)

Represents the payload claims of a JWT token.

Functions

Link copied to clipboard

Extracts the credentialId claim from a JWT token.