async def generate_refresh_token(self, request, user):
refresh_token = await utils.call(self.config.generate_refresh_token())<EOL>user_id = await self._get_user_id(user)<EOL>await utils.call(<EOL>self.store_refresh_token,<EOL>user_id=user_id,<EOL>refresh_token=refresh_token,<EOL>request=request,<EOL>)<EOL>return refresh_token<EOL>
Generate a refresh token for a given user.