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!

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)