validate

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

Allows you to perform additional validations on the JWT payload.

Return

a principal (usually an instance of JWTPrincipal) or null