@property
def token_credentials(self):
    if self.__token_details:
        token = self.__token_details.token
        token_key = base64.b64encode(token.encode('utf-8'))
        return token_key.decode('ascii')
@property
def token_credentials(self):
    if self.__token_details:
        token = self.__token_details.token
        token_key = base64.b64encode(token.encode('utf-8'))
        return token_key.decode('ascii')