Expand description

Builder for the auth session token refresh endpoint.

https://api.mangadex.org/swagger.html#/Auth/post-auth-refresh

Examples

use mangadex_api::MangaDexClient;
use mangadex_api::types::{Password, Username};

let client = MangaDexClient::default();

// Logging in will store the refresh token in the `MangaDexClient`.
let _login_res = client
    .auth()
    .login()
    .username(Username::parse("myusername")?)
    .password(Password::parse("hunter23")?)
    .build()?
    .send()
    .await?;

let refresh_res = client
    .auth()
    .refresh_token()
    .build()?
    .send()
    .await?;

println!("refresh: {:?}", refresh_res);

Structs

Get a new session and refresh token.

Enums

Error type for RefreshTokenBuilder