pub async fn authenticate_generic( kvs: &Datastore, session: &Session, authenticate: &Value, ) -> Result<(), Error>