validate

fun validate(body: suspend ApplicationCall.(BearerCredential) -> Principal?)

Sets a validation function that will check given BearerCredential instance and return Principal, or null if credential does not correspond to an authenticated principal.

Sources

Link copied to clipboard