def __call__(self, request, server):
        """
        Determines if the current request requests a refresh token.

        :return: An instance of :class:`RefreshTokenHandler`.
        """
        if request.path != server.token_path:
            return None

        if request.post_param("grant_type") != "refresh_token":
            return None

        return RefreshTokenHandler(
            access_token_store=server.access_token_store,
            client_authenticator=server.client_authenticator,
            scope_handler=self._create_scope_handler(),
            token_generator=server.token_generator,
            reissue_refresh_tokens=self.reissue_refresh_tokens
        )
def __call__ ( self , request , server ) : if request . path != server . token_path : return None if request . post_param ( "grant_type" ) != "refresh_token" : return None return RefreshTokenHandler ( access_token_store = server . access_token_store , client_authenticator = server . client_authenticator , scope_handler = self . _create_scope_handler ( ) , token_generator = server . token_generator , reissue_refresh_tokens = self . reissue_refresh_tokens )
Determines if the current request requests a refresh token.

        :return: An instance of :class:`RefreshTokenHandler`.