pub struct MinecraftAuthorizationFlow { /* private fields */ }Expand description
The flow for authenticating with a Microsoft access token and getting a Minecraft access token.
Implementations§
source§impl MinecraftAuthorizationFlow
impl MinecraftAuthorizationFlow
sourcepub const fn new(http_client: HttpClient) -> Self
pub const fn new(http_client: HttpClient) -> Self
Creates a new MinecraftAuthorizationFlow.
sourcepub async fn exchange_microsoft_token(
&self,
microsoft_access_token: impl AsRef<str>
) -> Result<MinecraftAuthenticationResponse, MinecraftAuthorizationError>
pub async fn exchange_microsoft_token( &self, microsoft_access_token: impl AsRef<str> ) -> Result<MinecraftAuthenticationResponse, MinecraftAuthorizationError>
Authenticates with the Microsoft identity platform using the given Microsoft access token and returns a MinecraftAuthenticationResponse that contains the Minecraft access token.