authorize method
Implementation
Future<Credential> authorize() async {
var state = flow.authenticationUri.queryParameters['state']!;
_requestsByState[state] = Completer();
await _startServer(port);
urlLancher(flow.authenticationUri.toString());
var response = await _requestsByState[state]!.future;
return flow.callback(response);
}