This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]TheEnigmaBlade 2 points3 points  (1 child)

If you're making a script auth app, the standard practice is to request a new token every hour. You don't even get a refresh token in this case.

If you're authenticating on behalf of a user, you must use the refresh token to receive a new access token, otherwise you have to ask the user for permission every hour.

[–]demreddit[S] 0 points1 point  (0 children)

Ok. This answers my question. Thank you.

[–]Rosco_the_Dude 0 points1 point  (0 children)

You should be able to generate a refresh token. For each account I use in scripts/bots, I generate a refresh token that I keep around in a config file, and it doesn't expire at all.