commit | a4cd28847ea82a424f150d08efbca36687a9b132 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Mon Feb 12 15:01:41 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Fri Mar 16 16:56:25 2018 +0900 |
tree | de9477ce3f311748c7ece5b6fab3e41eedd17743 | |
parent | 1d085b48342fe90f232f872a7022a76b424e317c [diff] |
Add support for "expires_in" field in authentication response Per the documentation [1], the "expires_in" field is preferred over the "expires_at" field. Refactor the implementation to hold the instant at which the token was issued, along with the expiry period, and calculate the "expires_at" value on demand. [1] https://github.com/git-lfs/git-lfs/blob/master/docs/api/authentication.md Change-Id: I14a05e5d71254ecacf36655a341d60febed8531e