getListClaim

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

Retrieves a non-RFC JWT claim by its name and attempts to decode it as a list of the specified type.

Return

a claim's value or an empty list if not available or unable to deserialize

Parameters

name

a claim's key as it appears in the JSON object