check_coros_auth
Check whether valid Coros access tokens are stored locally. Optionally verify with the server to confirm the token is still accepted.
Instructions
Check whether valid Coros access tokens are stored locally.
By default this is a LOCAL check only: authenticated: true means the stored
token has not passed its 24h TTL by the local clock — it does NOT confirm the
token is still accepted by Coros. A token can be revoked server-side (password
change, account lock) or invalidated early and still report authenticated here;
the next real data call would then fail with an auth error (which triggers a
re-login retry). expires_in_hours is likewise a local TTL estimate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verify_with_server | No | When True, additionally make one lightweight read call to Coros to confirm the web token is still accepted, adding a ``server_verified`` key: ``True`` (accepted), ``False`` (rejected — revoked/expired/wrong region), or ``None`` (inconclusive, e.g. a network error) with a ``server_message``. This does not re-login or alter the stored token. Off by default to keep the check cheap and offline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||