async fn access_handler(
    user_agent: String,
    refresh_token: String,
) -> Result<impl warp::Reply, warp::Rejection> {
    Ok(
        auth::access(&user_agent, &refresh_token)
            .await
            .map(|token| warp::http::Response::builder().body(token))?
    )
}
/// Get a new access token using a refresh token.
Get a new access token using a refresh token.
Get a new access token using a refresh token .
async fn access_handler(
    user_agent: String,
    refresh_token: String,
) -> Result<impl warp::Reply, warp::Rejection> {
    Ok(
        auth::access(&user_agent, &refresh_token)
            .await
            .map(|token| warp::http::Response::builder().body(token))?
    )
}
async fn access_handler ( user_agent : String , refresh_token : String , ) -> Result < impl warp :: Reply , warp :: Rejection > { Ok ( auth :: access ( & user_agent , & refresh_token ) . await . map ( | token | warp :: http :: Response :: builder ( ) . body ( token ) ) ? ) }
Get a new access token using a refresh token.
Get a new access token using a refresh token .
user_agent
String
refresh_token
String
user_agent
String
refresh_token
String