Buckets:

download
raw
537 Bytes
from auth.cognito.client import (
CognitoConfigurationError,
CognitoTokenError,
get_cognito_auth,
)
class UserContext:
"""
Lightweight helper for working with Cognito tokens.
This wrapper centralizes validation logic so other modules do not need to know
the Cognito configuration details.
"""
def __init__(self):
self.cognito = get_cognito_auth()
def validate_token(self, token: str):
"""Validate and decode a Cognito JWT."""
return self.cognito.validate_token(token)

Xet Storage Details

Size:
537 Bytes
·
Xet hash:
6c1f976684120ea2d190ece71e726d5dcfcf720d9cb6561daf5158d2c500bfa4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.