admin 管理员组文章数量: 1086019
I'm integrating Huawei Push Kit into my backend service and need to generate an OAuth 2.0 access token via Huawei OAuth endpoint using Client credentials mode before sending push notifications. According to the documentation, I obtain a token by sending a POST
request to:
POST
Content-Type: application/x-www-form-urlencoded
The access token is valid for 1 hour (3600 seconds). However, I couldn't find clear documentation on what happens if I generate a new token before the old one expires.
- Does the previous token become immediately invalid/Revoked?
- Or can both the old and new tokens be used until the old one naturally expires?
I want to ensure my implementation follows best practices and avoids unnecessary token generation. If anyone has tested this or found relevant documentation, I'd appreciate your insights!
Here's url to the documentation
Thanks in advance!
本文标签:
版权声明:本文标题:push notification - Does generating a new OAuth token invalidate the old one in Huawei's OAuth endpoint? - Stack Overflo 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1744058101a2526217.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论