Integrations/MicrosoftGraphFiles/MicrosoftGraphFiles.py
def return_valid_access_token_if_exist_in_context(self):
        """
        this function returns a valid access token from Demisto context if exists
        :return: valid access token or None
        """
        integration_context = demisto.getIntegrationContext()
        access_token = integration_context.get("access_token")
        valid_until = integration_context.get("valid_until")
        if access_token and valid_until:
            if epoch_seconds() < valid_until:
                return access_token

        this function returns a valid access token from Demisto context if exists
        :return: valid access token or None
        
this function returns a valid access token from Demisto context if exists
this function returns a valid access token from Demisto context if exists
def return_valid_access_token_if_exist_in_context(self):
        integration_context = demisto.getIntegrationContext()
        access_token = integration_context.get("access_token")
        valid_until = integration_context.get("valid_until")
        if access_token and valid_until:
            if epoch_seconds() < valid_until:
                return access_token
def return_valid_access_token_if_exist_in_context ( self ) : integration_context = demisto . getIntegrationContext ( ) access_token = integration_context . get ( "access_token" ) valid_until = integration_context . get ( "valid_until" ) if access_token and valid_until : if epoch_seconds ( ) < valid_until : return access_token
this function returns a valid access token from Demisto context if exists
this function returns a valid access token from Demisto context if exists
"""
        this function returns a valid access token from Demisto context if exists
        :return: valid access token or None
        """
valid access token or None
valid access token or None
self