While uploading files to LFS, if the file count is big enough, the authentication token provided by Bitbucket Cloud expires while performing the push. Further tentatives to push the files fails with an error like:
Authentication required: Invalid authentication token
LFS batch API spec supports expiration hints in the response:
expires_at. Without these attributes LFS client assumes the token never expire.