---
title: "refresh access token · RUAL Documentation"
description: "With this block you can refresh an access token. DEPRECATED from 15.0.0: this block talks to the Aqara CLOUD gateway, so a command travels to Aqara's se…"
canonical: https://docs.rual.nl/block-types/Home%20Automaton/aqaraconnection_auth_refresh_token
language: en
---

[Cluster](https://docs.rual.nl/cluster)

[Blocks](https://docs.rual.nl/block-types)

[Interfaces](https://docs.rual.nl/interfaces)

[Blueprints](https://docs.rual.nl/blueprints)

[Tutorials](https://docs.rual.nl/tutorials)

[Home automation](https://docs.rual.nl/home-automation)

[Examples](https://docs.rual.nl/examples)

[Reference](https://docs.rual.nl/reference)

[Architecture](https://docs.rual.nl/architecture)

[Troubleshooting](https://docs.rual.nl/troubleshooting)

Other

# refresh access token

This block is part of the [`Home Automaton`](https://docs.rual.nl/block-types/Home%20Automaton) group and was last modified in core [`v13.0.8`](https://docs.rual.nl/core-versions/130008).

> **Deprecated** This block has been deprecated since `v0.0.0`, please avoid future use.

With this block you can refresh an access token. DEPRECATED from 15.0.0: this block talks to the Aqara CLOUD gateway, so a command travels to Aqara's servers and back to reach a device in the same room, and stops working when the internet does. RUAL is the gateway now: pair Aqara devices to a Zigbee coordinator on the node and use the local home automation blocks (homeassist_*) instead.

- flow `flow`

- Connection required `aqaraconnection` The aqara connection

- Refresh token required `value` The refresh token that was given when verifying the auth code.

- flow `flow`

- Connection `aqaraconnection` The aqara connection with the new access token set.

- Success `condition` If successful, this pin returns true.

- Access token `value` The new access token that can be used to authenticate the user.

- Refresh token `value` The new refresh token that can be used to refresh the access token.

- User ID `value` The Aqara user ID of the authenticated user.

- Error `value` Error message if the verification code could not be verified.

## Version history

Introduced in [`v13.0.8`](https://docs.rual.nl/core-versions/130008).

- [Back to `Home Automaton`](https://docs.rual.nl/block-types/Home%20Automaton): Return to the main group to view all sub-groups

- [Back to `Aqara`](https://docs.rual.nl/block-types/Home%20Automaton?group=Aqara): Return to the group to view all blocks within this group

Was this page helpful? [Tell us what to improve](https://docs.rual.nl/support) · RUAL Docs is an integral component of the [RUAL ecosystem](https://rual.nl)
