def access_token(self, value, request):
        """
        Try to get the `AccessToken` associated with the provided token.

        *The provided value must pass `BearerHandler.validate()`*
        """

        if self.validate(value, request) is not None:
            return None
        
        access_token = AccessToken.objects.for_token(value)
        
        return access_token
def access_token ( self , value , request ) : if self . validate ( value , request ) is not None : return None access_token = AccessToken . objects . for_token ( value ) return access_token
Try to get the `AccessToken` associated with the provided token.

        *The provided value must pass `BearerHandler.validate()`*