async fn login_handler(
    user_agent: String,
    req: auth::AuthenticateRequest,
) -> Result<impl warp::Reply, warp::Rejection> {
    Ok(auth::authenticate(&user_agent, "/api/auth", req).await
        .map(|cookie| {
            warp::http::Response::builder()
                .header(
                    "set-cookie",
                    &cookie,
                )
                .body("success")
        })?
    )
}
/// Authenticate with an email and a password to retrieve a refresh token cookie.
Authenticate with an email and a password to retrieve a refresh token cookie.
Authenticate with an email and a password to retrieve a refresh token cookie .
async fn login_handler(
    user_agent: String,
    req: auth::AuthenticateRequest,
) -> Result<impl warp::Reply, warp::Rejection> {
    Ok(auth::authenticate(&user_agent, "/api/auth", req).await
        .map(|cookie| {
            warp::http::Response::builder()
                .header(
                    "set-cookie",
                    &cookie,
                )
                .body("success")
        })?
    )
}
async fn login_handler ( user_agent : String , req : auth :: AuthenticateRequest , ) -> Result < impl warp :: Reply , warp :: Rejection > { Ok ( auth :: authenticate ( & user_agent , " " , req ) . await . map ( | cookie | { warp :: http :: Response :: builder ( ) . header ( " " , & cookie , ) . body ( " " ) } ) ? ) }
Authenticate with an email and a password to retrieve a refresh token cookie.
Authenticate with an email and a password to retrieve a refresh token cookie .
user_agent
String
req
auth::AuthenticateRequest
user_agent
String
req
auth::AuthenticateRequest