Refreshing a token #433
Unanswered
BlackPhoenix
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm hit with the reCaptcha right now, for which (as far as I can tell) doesn't have a workaround for generating a new token. I could work with something that requires human interaction at this time, in case someone can point me somewhere.
That said, I have a current not-yet-expired token, along with the corresponding refresh token, but my attempts to refresh the token have been less-than-successful in the past. The Ruby code doesn't work for me (see here), and other implementations either require to have the token saved in their own file format (which I can't seem to figure out since I cannot use the code to generate a token in the first place), or are using a language I'm not familiar enough with.
Does someone have some quick-and-dirty piece of code I could use to refresh a token? It would be a 1-time thing, so I could put my current refresh_token in a string straight in the code, and the having the code output the new token, refresh_token, and expiry to console is plenty. I'm fine with installing a library (such as nodejs, for example). I'm trying to figure it out myself, but my token is expiring in a few days, so I'm running out of time.
I'm running Linux, in case it matters.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions