Re:A practical proposal for migrating to safe long sessions ...
by edvinbesic on Thursday July 21, 2016 @01:22PM
(#12138432)
Pretty much this. Especially if you are already using promises in your library, having an async function that returns the token to you solves that problem. Now you don't have to worry about where your token comes from, if it immediately resolved or if it had to do a round-trip to refresh the token etc.
[ Parent
| on HN ]
There are no comments on this comment yet.