AuthService class
- Implemented types
Constructors
-
AuthService.new({required String clientId, required String redirectUri, required List<
String> scopes, Client? httpClient, void onGetDeviceCode(DeviceCodeResponse)?})
Properties
- accessToken → String?
-
no setter
- clientId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- microsoftRefreshToken → String?
-
no setter
- minecraftProfile → MinecraftAccountProfile?
-
no setter
- minecraftToken → String?
-
no setter
- onGetDeviceCode → void Function(DeviceCodeResponse)?
-
final
- redirectUri → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<
String> -
final
- xstsToken → String?
-
no setter
- xstsUhs → String?
-
no setter
Methods
-
clearAuthentication(
) → void -
getAuthenticationUrl(
) → String -
getMinecraftProfile(
) → Future< MinecraftAccountProfile?> -
getMinecraftProfileWithToken(
String minecraftToken) → Future< MinecraftAccountProfile?> - Gets the Minecraft profile using the provided Minecraft token
-
getMinecraftTokenWithXstsToken(
String uhs, String xstsToken) → Future< String?> - Gets a Minecraft access token directly using XSTS token and UHS
-
hasMinecraftProfile(
) → Future< bool> -
override
-
isAuthenticated(
) → Future< bool> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshAuthentication(
) → Future< bool> -
refreshAuthenticationWithToken(
String refreshToken) → Future< MicrosoftAccount?> -
Refreshes authentication using a specific refresh token and returns the Microsoft account profile
override
-
startAuthenticationFlow(
{String? deviceCode, bool useDeviceCode = true}) → Future< bool> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited