synapse/api/auth.py
def has_access_token(request):
    """Checks if the request has an access_token.

    Returns:
        bool: False if no access_token was given, True otherwise.
    """
    query_params = request.args.get("access_token")
    auth_headers = request.requestHeaders.getRawHeaders(b"Authorization")
    return bool(query_params) or bool(auth_headers)
Checks if the request has an access_token.

    Returns:
        bool: False if no access_token was given, True otherwise.
    
Checks if the request has an access_token.
Checks if the request has an access_token .
def has_access_token(request):
    query_params = request.args.get("access_token")
    auth_headers = request.requestHeaders.getRawHeaders(b"Authorization")
    return bool(query_params) or bool(auth_headers)
def has_access_token ( request ) : query_params = request . args . get ( "access_token" ) auth_headers = request . requestHeaders . getRawHeaders ( b"Authorization" ) return bool ( query_params ) or bool ( auth_headers )
Checks if the request has an access_token.
Checks if the request has an access_token .
"""Checks if the request has an access_token.

    Returns:
        bool: False if no access_token was given, True otherwise.
    """
False if no access_token was given, True otherwise.
False if no access_token was given True otherwise .
bool
request