Remove print
This commit is contained in:
parent
ffb9bfe6ae
commit
e86f6d1427
1 changed files with 1 additions and 2 deletions
|
@ -75,7 +75,7 @@ class TwitterStrategy<User> extends AuthStrategy<User> {
|
||||||
var result = await getRequestToken();
|
var result = await getRequestToken();
|
||||||
var token = result['oauth_token'];
|
var token = result['oauth_token'];
|
||||||
var url = baseUrl.replace(
|
var url = baseUrl.replace(
|
||||||
path: p.join(baseUrl.path, 'oauth/authenticate'),
|
path: p.join(baseUrl.path, 'oauth/authorize'),
|
||||||
queryParameters: {'oauth_token': token});
|
queryParameters: {'oauth_token': token});
|
||||||
res.redirect(url);
|
res.redirect(url);
|
||||||
return null;
|
return null;
|
||||||
|
@ -85,7 +85,6 @@ class TwitterStrategy<User> extends AuthStrategy<User> {
|
||||||
Future<User> authenticateCallback(
|
Future<User> authenticateCallback(
|
||||||
RequestContext req, ResponseContext res, AngelAuthOptions options) async {
|
RequestContext req, ResponseContext res, AngelAuthOptions options) async {
|
||||||
// TODO: Handle errors
|
// TODO: Handle errors
|
||||||
print('Query: ${req.queryParameters}');
|
|
||||||
var token = req.queryParameters['oauth_token'] as String;
|
var token = req.queryParameters['oauth_token'] as String;
|
||||||
var verifier = req.queryParameters['oauth_verifier'] as String;
|
var verifier = req.queryParameters['oauth_verifier'] as String;
|
||||||
var loginData = await getAccessToken(token, verifier);
|
var loginData = await getAccessToken(token, verifier);
|
||||||
|
|
Loading…
Reference in a new issue