webAuth method

  1. @override
Future<String?> webAuth(
  1. Uri url
)
override

Handle OAuth2 session creation.

Implementation

@override
Future<String?> webAuth(Uri url) async {
  final request = http.Request('GET', url);
  request.followRedirects = false;
  final response = await _httpClient.send(request);
  return response.headers['location'];
}