getClaim

fun <T : Any> getClaim(name: String, clazz: KClass<T>): T?

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

Return

a claim's value or null if not available or unable to deserialize

Parameters

name

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