Skip to content

Refresh Tokens #510

Answered by jwag956
Mochnant asked this question in Q&A
Aug 2, 2021 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

I don't pretend to me an expert here - but I would think that for a desktop app - you would use the local OS 'vault' - e.g. keychain on a mac to store (if the user allows) the credentials (user/pass) - then have your app generate a auth token that is valid say for a day - then once your app gets a 401 it gets the creds from the vault and re-authenticates getting a new auth token. Note that in FS passwords are basically 'revokable' - either by the user changing it or administratively.
A question is - what precisely are you worried about having a long-lived access token? Is the security posture of your app worth the hassle?
You could of course create your own 'refresh token' pretty easily (…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Mochnant
Comment options

Answer selected by Mochnant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants