Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2Client shouldn't throw access token error until attempting to refresh #53

Merged
merged 2 commits into from
Jun 24, 2013

Conversation

rakyll
Copy link
Contributor

@rakyll rakyll commented Jun 24, 2013

Line 159 of lib/auth/oauth2client.js throws an error if no access token is present, but if a refresh token is present in credentials, an attempt to obtain an access token with the refresh token should be made before failing.

@ghost ghost assigned rakyll Jun 24, 2013
rakyll pushed a commit that referenced this pull request Jun 24, 2013
OAuth2Client shouldn't throw access token error until attempting to refresh
@rakyll rakyll merged commit d826c3a into googleapis:master Jun 24, 2013
@rakyll
Copy link
Contributor

rakyll commented Jun 24, 2013

d826c3a fixes this issue, the exception is now thrown unless an access or a refresh token is provided.

@bentona
Copy link
Contributor Author

bentona commented Jun 24, 2013

Looks great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants