removed commented imports and added a better description

This commit is contained in:
toepp
2022-08-31 11:03:31 +02:00
parent 7c557a5d03
commit f35eb186d6

View File

@@ -1,14 +1,17 @@
//! pseudo authenticator for use with plain access tokens
//! pseudo authenticator for use with plain access tokens.
//! If you use a specialized service to manage your
//! OAuth2-tokens you may get just the fresh generated
//! access token from your service.
//! The intention behind this is that if two services using the
//! same refresh token then each service will invalitate the
//! access token of the other service by generating a new token.
use crate::error::Error;
use crate::types::TokenInfo;
use hyper::client::connect::Connection;
// use hyper::header;
use http::Uri;
// use serde::{Deserialize, Serialize};
use std::error::Error as StdError;
use tokio::io::{AsyncRead, AsyncWrite};
use tower_service::Service;
// use url::form_urlencoded;
/// the flow for the access token authenticator
pub struct AccessTokenFlow {