ktor-auth-jwt / io.ktor.auth.jwt / JWTPayloadHolder / getListClaim

getListClaim

fun <T : Any> getListClaim(name: String, clazz: KClass<T>): List<T>

Retrieve a non-RFC JWT Claim by its name and attempt to decode as a list of the supplied type

Parameters

name - The claim's key as it appears in the JSON object

Return
the Claim's value or an empty list if not available or unable to deserialise