flask_cognito.py
def cognito_auth_required(fn):
    """View decorator that requires a valid Cognito JWT token to be present in the request."""

    @wraps(fn)
    def decorator(*args, **kwargs):
        _cognito_auth_required()
        return fn(*args, **kwargs)

    return decorator
View decorator that requires a valid Cognito JWT token to be present in the request.
View decorator that requires a valid Cognito JWT token to be present in the request.
View decorator that requires a valid Cognito JWT token to be present in the request .
def cognito_auth_required(fn):
    @wraps(fn)
    def decorator(*args, **kwargs):
        _cognito_auth_required()
        return fn(*args, **kwargs)
    return decorator
def cognito_auth_required ( fn ) : @ wraps ( fn ) def decorator ( * args , ** kwargs ) : _cognito_auth_required ( ) return fn ( * args , ** kwargs ) return decorator
View decorator that requires a valid Cognito JWT token to be present in the request.
View decorator that requires a valid Cognito JWT token to be present in the request .
"""View decorator that requires a valid Cognito JWT token to be present in the request."""
fn