code: async def generate_access_token(self, user):
          
          payload = await self._get_payload(user)
          secret = self._get_secret(True)
          algorithm = self._get_algorithm()
  
          return jwt.encode(payload, secret, algorithm=algorithm).decode("utf-8")
docs: Generate an access token for a given user.