Skip to content

Commit bee0720

Browse files
Modfiy backend earthaccess.auth API per changes in #782
1 parent d1fd462 commit bee0720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

titiler/cmr/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
@cached( # type: ignore
3939
TTLCache(maxsize=100, ttl=60),
40-
key=lambda auth, daac: hashkey(auth.tokens[0]["access_token"], daac),
40+
key=lambda auth, daac: hashkey(auth.token["access_token"], daac),
4141
)
4242
def aws_s3_credential(auth: Auth, provider: str) -> Dict:
4343
"""Get AWS S3 credential through earthaccess."""

0 commit comments

Comments
 (0)