fetchOAuth2CurrentApplication method

Future<Application> fetchOAuth2CurrentApplication()

Fetch the current OAuth2 application.

Implementation

Future<Application> fetchOAuth2CurrentApplication() async {
  final route = HttpRoute()
    ..oauth2()
    ..applications(id: '@me');
  final request = BasicRequest(route);

  final response = await client.httpHandler.executeSafe(request);
  return parse(response.jsonBody as Map<String, Object?>);
}