AuthenticationFunction

typealias AuthenticationFunction<C> = suspend ApplicationCall.(credentials: C) -> Principal?

An authentication function that accepts and verifies credentials and returns a principal when verification is successful.