validate

fun validate(
    validate: suspend ApplicationCall.(JWTCredential) -> Principal?
): Unit

Apply validate function to every call with JWTCredential

Return a principal (usually an instance of JWTPrincipal) or null