How long until refresh tokens expire?

Is anyone aware of how long a a refresh_token will remain valid for (still allow the server to request new access_tokens)? I couldn't see any indication of this in the YNAB API docs.

4replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • I don't know the answer, but anecdotally I can tell you it lasts at least two weeks.  I just tested this with an app I'm working on, that I last ran two weeks ago and just started now, and it was able to get a new token using the previous refresh token from two weeks ago.

    Like
    • Emanuel Borsboom Thanks for the info, that's useful to know

      Like
  • Hi Felix Terpstra !

    Access Tokens are good for 2 hours (that's in the docs, so you may have found that!). Refresh tokens are good for an extended period of time, but if you're having any trouble with expiry please let me know, or send us an email at [email protected] and we'll help get that squared away!

    Like
    • Chrissy No trouble yet, was just confirming. Thanks for your help!

      Like
Like Follow
  • 2 mths agoLast active
  • 4Replies
  • 170Views
  • 3 Following