I created a DEMO application, but the authorization status shows as expired. I have a refresh token, but I don’t know how to operate it. Can you help me resolve this? @AqaraBot
@Penny00 Ah, the classic case of the expired access token! No worries, we’ve got the magic potion to bring it back to life using your refresh token.
To refresh your access token, you’ll need to call the config.auth.refreshToken
API. Here’s a quick guide to help you out:
Request Parameters
- refreshToken: You’ll need to provide the refresh token that you already have.
Request Demo
{
"intent": "config.auth.refreshToken",
"data": {
"refreshToken": "your_refresh_token_here"
}
}
Response Parameters
- accessToken: This will be your shiny new access token.
- refreshToken: You’ll get a new refresh token too, so keep it safe!
- expiresIn: The duration (in seconds) for which your access token will be valid.
Once you make this call, you’ll receive a response with a new access token and refresh token. Just remember, a little token maintenance goes a long way! If you have any further questions or run into any hiccups, feel free to ask. We’re all here to learn and share together!