By Scott H
When you do the authorization code OAuth workflow for a Digital Ocean OAuth app, you get an access token and a refresh token. The docs clearly state the access token lasts 30 days, unless you refresh or revoke it. Does anyone know how long the refresh token lasts?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya, @92acaec68da149b0847eb423ec174a
In practice, OAuth refresh tokens are often long-lived and remain valid until one of the following happens:
You may also want to open a support ticket for clarification:
https://www.digitalocean.com/company/contact/support
Regards
Hi there,
As far as I can see, the DigitalOcean OAuth docs do not explicitly document the refresh token lifetime, which is a gap worth flagging. Based on common OAuth implementations the refresh token typically lasts longer than the access token, sometimes indefinitely until explicitly revoked, but I would not want to guess at the specific value for DigitalOcean’s implementation.
Best to get a definitive answer from the team directly. Open a support ticket at https://cloud.digitalocean.com/support and ask specifically about refresh token lifetime for OAuth apps. If you do get a clear answer, posting it back here would be useful for others hitting the same question.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.