claims

fun claims(block: MutableMap<String, Any>.() -> Unit)

Configures additional custom claims to be included in the signed JWT.

These claims can be used for verification purposes and provide additional context about the device binding operation. The claims are included in the JWT payload and can be validated by the server.

Example:

claims {
put("app_version", "1.2.3")
put("device_type", "mobile")
put("custom_data", mapOf("key" -> "value"))
}

Parameters

block

Configuration block that receives a MutableMap for adding claims