nexus_oauth_refresh
Refresh an expired OAuth access token when a request returns 401. If the refresh fails, clear stored tokens and log in again.
Instructions
Force a refresh of the OAuth access token via the refresh grant.
Use when a request unexpectedly returns 401. A 4xx refresh failure means the user revoked the application (see https://users.nexusmods.com/oauth/authorized_applications) and the stored tokens are cleared - log in again with nexus_oauth_login.
Returns: JSON {refreshed, expires_at, scope} or an error string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |