首页 > 解决方案 > 401 Unauthorized invalid_grant 刷新令牌时

问题描述

当我尝试使用我的 refresh_token 刷新我的 access_token 时,它给了我一个 401 错误:

invalid_grant 
The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

我非常确定刷新令牌没有过期/无效,因为它像 5 分钟前一样被 OAuthed。它也没有被我撤销。

这是我发送的帖子请求(使用 axios):

POST https://api.coinbase.com/oauth/token

grant_type = 'refresh_token'
client_id = <CLIENT_ID>
client_secet = <CLIENT_SECRET>
refresh_token = <REFRESH_TOKEN>

谢谢你的帮助。

标签: oauth-2.0coinbase-api

解决方案


推荐阅读