AuthenticationFunction

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

Authentication function that accepts and verifies credentials and returns a principal when verification successful.