AuthService constructor

AuthService({
  1. required String clientId,
  2. required String redirectUri,
  3. required List<String> scopes,
  4. Client? httpClient,
  5. void onGetDeviceCode(
    1. DeviceCodeResponse
    )?,
})

Implementation

AuthService({
  required this.clientId,
  required this.redirectUri,
  required this.scopes,
  http.Client? httpClient,
  this.onGetDeviceCode,
}) {
  _microsoftAuthService = MicrosoftAuthService(
    clientId: clientId,
    redirectUri: redirectUri,
    httpClient: httpClient,
  );
  _xboxAuthService = XboxAuthService(httpClient: httpClient);
  _minecraftAuthService = MinecraftAuthService(
    clientId: clientId,
    httpClient: httpClient,
  );
}