FetchAuthTokenInterface
interface FetchAuthTokenInterface (View source)
An interface implemented by objects that can fetch auth tokens.
Methods
                    array
                
                
                    fetchAuthToken(callable|null $httpHandler = null)
                                            
                
            Fetches the auth tokens based on the current state.
                    string
                
                
                    getCacheKey()
                                            
                
            Obtains a key that can used to cache the results of #fetchAuthToken.
                    null|array
                
                
                    getLastReceivedToken()
                                            
                
            Returns an associative array with the token and expiration time.
Details
        
                            array
    fetchAuthToken(callable|null $httpHandler = null)
        
    
    Fetches the auth tokens based on the current state.
        
                            string
    getCacheKey()
        
    
    Obtains a key that can used to cache the results of #fetchAuthToken.
If the value is empty, the auth token is not cached.
        
                            null|array
    getLastReceivedToken()
        
    
    Returns an associative array with the token and expiration time.