checkUrl method
This will check if the current URL has authentication tokens.
Implementation
bool checkUrl(Uri url) {
try {
if (url.host != _redirectUri!.host) return false;
if (url.query.isEmpty) return false;
if (!url.queryParameters.containsKey(authCodeKey)) return false;
var code = url.queryParameters[authCodeKey];
foundAuthCode(code);
return true;
} catch (exception) {
print(exception);
return false;
}
}