Error retrieving access token: Error: invalid_grant
See original GitHub issueI’m getting an odd error when trying to call clasp login
. I’m successfully logged in and redirected but clasp is claiming an invalid token. I’ve also tried a few different accounts.
Steps to Reproduce the Problem
- clasp login
- allow the right account
- login successful return to terminal.
- Error retrieving access token: Error: invalid_grant
Specifications
- Node version: 8.9.2
- Version (
npm list | grep clasp
):
⟩ npm list -g | grep clasp ├─┬ @google/clasp@1.1.0
- OS mac
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
invalid_grant trying to get oAuth token from google
RFC 6749 OAuth 2.0 defined invalid_grant as: The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh ...
Read more >Google OAuth “invalid_grant” nightmare — and how to fix it
1) Server clock/time is out of sync · 2) Not authorized for offline access · 3) Throttled by Google · 4) Using expired...
Read more >How to interpret and resolve the "Invalid Grant" error for ...
THE "INVALID GRANT" ERROR MAY BE RETURNED FOR THE FOLLOWING REASONS · The user has revoked your access. · The refresh token has...
Read more >"invalid_grant" error when requesting an OAuth Token
Issue symptoms. When I attempt to obtain an access token, I receive the error below. {"error":"invalid_grant",
Read more >{'error': 'invalid_grant', 'error_description': 'Bad Request'}
Hi Diana, Thank you for reaching out. The "invalid_grant" error usually indicates that the access or refresh token being passed in your request...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@froggr looking into it, in the meantime please install
npm i -g @google/clasp@1.1.1
.Thanks for letting me know @csell5. 1.1.1 should fix this.
Install the latest
clasp
and it should work now.