What's the lifespan of access tokens and refresh tokens, and how can I refresh expired tokens?

Updated 

Code flow with PKCE access tokens have a lifespan of 15 minutes whilst refresh tokens last 90 days. Device code flow access tokens have a lifespan of 1 day whilst refresh tokens last 15 years. You can follow these instructions to refresh expired tokens.