async fn logout_handler(
    user_agent: String,
    refresh_token: String,
) -> Result<impl warp::Reply, warp::Rejection> {
    // Ignore result, always reply with 200. Don't want an attacker to know if they logged out with
    // actual credentials or not.
    let _ = auth::logout(&user_agent, &refresh_token).await;
    Ok(warp::reply())
}
/// Explicitly log out by revoking the refresh token.
Explicitly log out by revoking the refresh token.
Explicitly log out by revoking the refresh token .
async fn logout_handler(
    user_agent: String,
    refresh_token: String,
) -> Result<impl warp::Reply, warp::Rejection> {
    // Ignore result, always reply with 200. Don't want an attacker to know if they logged out with
    // actual credentials or not.
    let _ = auth::logout(&user_agent, &refresh_token).await;
    Ok(warp::reply())
}
async fn logout_handler ( user_agent : String , refresh_token : String , ) -> Result < impl warp :: Reply , warp :: Rejection > { // Ignore result, always reply with 200. Don't want an attacker to know if they logged out with // actual credentials or not. let _ = auth :: logout ( & user_agent , & refresh_token ) . await ; Ok ( warp :: reply ( ) ) }
Explicitly log out by revoking the refresh token.
Explicitly log out by revoking the refresh token .
user_agent
String
refresh_token
String
user_agent
String
refresh_token
String