def grantsetter(self, f):
        self._grantsetter = f
        return f
Register a function to save the grant code.
dataset/ETHPy150Open codalab/codalab-cli/codalab/server/oauth2_provider.py/OAuth2Provider.grantsetter