validate

fun validate(body: suspend ApplicationCall.(UserPasswordCredential) -> Any?)(source)

Sets a validation function that checks a specified UserPasswordCredential instance and returns principal Any in a case of successful authentication or null if authentication fails.

Report a problem