# Box refresh tokens expire after 14 days by design

## TL;DR

If you integrate with the Box API, design for the 14-day refresh token lifetime from the start: refresh on a schedule well inside the window, or lazily refresh before expiry on every run, and treat a 400 on refresh as a signal to re-run the full authorization flow, not as a transient error to retry. Context: Stack Overflow #15564486 (accepted answer, 14 votes): the asker wanted to know why every Box refresh token dies after 14 days. The top-voted answer (14 votes) is from the Box team: the 14-day lifetime is deliberate OAuth2 security policy, chosen from developer feedback and login-frequency data showing most users sign in more often than that.

Use this when you run into the situation in the title.

**When not to use this skill:** unrelated tasks. It covers only the procedure above.

## Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

## Details

There is no configuration to extend it; the refresh token simply has to be used at least once every 14 days to stay alive.
