code: def create_access_token_data(self, grant_type):
          
          result = {"access_token": self.generate(), "token_type": "Bearer"}
  
          if self.expires_in.get(grant_type, 0) > 0:
              result["refresh_token"] = self.generate()
  
              result["expires_in"] = self.expires_in[grant_type]
  
          return result
docs: Create data needed by an access token.
  
          :param grant_type:
          :type grant_type: str
  
          :return: A ``dict`` containing he ``access_token`` and the
                   ``token_type``. If the value of ``TokenGenerator.expires_in``
                   is larger than 0, a ``refresh_token`` will be generated too.
          :rtype: dict