def get_access_token(request):
    """ Retrieves the access token from the authorized message that will be sent in request headers.

    Args:
        request: The request that was sent.

    Returns:
        The access token.
    """
    authorization = request.headers.get('authorization')
    return authorization.replace("Bearer ", "", 1)