{"push_id":1198347264,"size":1,"distinct_size":1,"ref":"refs/heads/jab-improve-DO-oauth","head":"bb8058b984843dbdc19dd0421ce7c8a961ea2fa9","before":"d3e68236e48fababecd5325c1f6855af3b66bc4b","commits":[{"sha":"bb8058b984843dbdc19dd0421ce7c8a961ea2fa9","author":{"name":"jab","email":"a4b6859a40552b42a4ac34333b530750cfc06231@users.noreply.github.com"},"message":"add hasOAuth() method, use cached OAuth token\n\nRather than requesting an OAuth token for every authorization-requiring request,\ncache the OAuth token in storage, and try to use the cached token for subsequent\nrequests. Only request a new OAuth token if a failure results from using the\ncached one.\n\nNew hasOAuth() method returns whether or not we have an OAuth token cached.\nThis will give the UI a hint about whether it should prompt the user to\nauthorize uProxy to access her DO account, or whether this prompt can likely be\nskipped. This is only a hint because the token could have expired, or the user\ncould have manually revoked the access token using the DO UI at\n<https://cloud.digitalocean.com/settings/api/access>.\nBut this is strictly better than never saving the token, which led to the\ncurrent UI which always prompts the user to \"sign in and connect\" to DO, even\nwhen the user already has.\n\nref: #2292","distinct":true,"url":"https://api.github.com/repos/uProxy/uproxy/commits/bb8058b984843dbdc19dd0421ce7c8a961ea2fa9"}]}
{"actor":{"display_login":"jab"}}