diff --git a/lib/angel_auth_twitter.dart b/lib/angel_auth_twitter.dart index 2aeadbc6..bf1e811f 100644 --- a/lib/angel_auth_twitter.dart +++ b/lib/angel_auth_twitter.dart @@ -75,7 +75,7 @@ class TwitterStrategy extends AuthStrategy { var result = await getRequestToken(); var token = result['oauth_token']; var url = baseUrl.replace( - path: p.join(baseUrl.path, 'oauth/authenticate'), + path: p.join(baseUrl.path, 'oauth/authorize'), queryParameters: {'oauth_token': token}); res.redirect(url); return null; @@ -85,7 +85,6 @@ class TwitterStrategy extends AuthStrategy { Future authenticateCallback( RequestContext req, ResponseContext res, AngelAuthOptions options) async { // TODO: Handle errors - print('Query: ${req.queryParameters}'); var token = req.queryParameters['oauth_token'] as String; var verifier = req.queryParameters['oauth_verifier'] as String; var loginData = await getAccessToken(token, verifier);