Skip to content

Commit c6bb5ea

Browse files
committed
add resolve docstring
1 parent 68d4d43 commit c6bb5ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/momento/auth/momento_endpoint_resolver.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ class _Base64DecodedV1Token:
3333

3434

3535
def resolve(auth_token: str) -> _TokenAndEndpoints:
36+
"""Helper function used by from_string and from_disposable_token to parse legacy and v1 auth tokens.
37+
38+
Args:
39+
auth_token (str): The auth token to be resolved.
40+
41+
Returns:
42+
_TokenAndEndpoints
43+
"""
3644
if not auth_token:
3745
raise InvalidArgumentException("malformed auth token", Service.AUTH)
3846

0 commit comments

Comments
 (0)