validate
fun validate(body: suspend <ERROR CLASS>.(UserPasswordCredential) -> Principal?)
Content copied to clipboard
Sets a validation function that checks a specified UserPasswordCredential instance and returns UserIdPrincipal in a case of successful authentication or null if authentication fails.