Return token expiration hint for LFS download links

Issue #18175 resolved
Daniil Penkin staff created an issue

LFS client gets download links in batches of 100 (currently not configurable). If the files are big enough and/or internet connection is slow, LFS client might not be able to finish downloading all the files. In this case it'll fail with an error like:

Authentication required: Invalid authentication token

LFS batch API spec supports expiration hints in the response: expires_in and expires_at. Without these attributes LFS client assumes the download links never expire.

Adding these attributes to the response payload would help LFS client to re-request the links when required.

Comments (1)

  1. Log in to comment