pub type EndpointHandler = fn(&AuthContext, Request<Vec<u8>>) -> Result<Response<Vec<u8>>, OpenAuthError>;