We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d772d5 commit 8bd3530Copy full SHA for 8bd3530
pyiceberg/io/fsspec.py
@@ -212,11 +212,11 @@ class StaticTokenCredential(AsyncTokenCredential):
212
213
def __init__(self, token_string: str) -> None:
214
self._token = token_string
215
- # Set expiration 1 hour from now
216
- self._expires_on = int(time.time()) + self._DEFAULT_EXPIRY_SECONDS
217
218
async def get_token(self, *scopes: str, **kwargs: Any) -> AccessToken:
219
- return AccessToken(self._token, self._expires_on)
+ # Set expiration 1 hour from now
+ expires_on = int(time.time()) + self._DEFAULT_EXPIRY_SECONDS
+ return AccessToken(self._token, expires_on)
220
221
if token := properties.get(ADLS_TOKEN):
222
credential = StaticTokenCredential(token)
0 commit comments