Module mangadex_api::v5::auth::check_token
source · [−]Expand description
Builder for the auth session check endpoint.
https://api.mangadex.org/swagger.html#/Auth/get-auth-check
Examples
use mangadex_api::MangaDexClient;
use mangadex_api::types::{Password, Username};
let client = MangaDexClient::default();
let _login_res = client
.auth()
.login()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.build()?
.send()
.await?;
let auth_check_res = client
.auth()
.check_token()
.build()?
.send()
.await?;
println!("auth check: {:?}", auth_check_res);
Structs
Check the session token and get additional user information.
Builder for CheckToken
.
Enums
Error type for CheckTokenBuilder