planetary-computer-sdk-for-python
planetary-computer-sdk-for-python copied to clipboard
Allow `planetary_computer.sign_url` to refresh token of signed URLs
The sign_url function checks whether SAS token query parameters are present and, if present, returns the URL unaltered:
https://github.com/microsoft/planetary-computer-sdk-for-python/blob/0c1d7849b9fb8eb270fcde15dcd7a0ca1df18cd3/planetary_computer/sas.py#L161-L164
Is it possible to allow this function to refresh the token of signed URLs by checking the expiration datetime of the se query parameter?