Service/ClientProvider.php
public function setAccessToken(?string $accessToken, string $tokenName = null)
    {
        $name = $this->config->getKey($tokenName);
        $cacheKey = $this->creteCacheKey($name);

        if (null === $accessToken) {
            $this->pool->deleteItem($cacheKey);

            return;
        }

        $item = $this->pool->getItem($cacheKey)->set(new AccessToken($name, $accessToken));
        $this->pool->save($item);
    }
public function setAccessToken(?string $accessToken, string $tokenName = null)
    {
        $name = $this->config->getKey($tokenName);
        $cacheKey = $this->creteCacheKey($name);

        if (null === $accessToken) {
            $this->pool->deleteItem($cacheKey);

            return;
        }

        $item = $this->pool->getItem($cacheKey)->set(new AccessToken($name, $accessToken));
        $this->pool->save($item);
    }
public function setAccessToken ( ? string $ accessToken , string $ tokenName = null ) { $ name = $ this -> config -> getKey ( $ tokenName ) ; $ cacheKey = $ this -> creteCacheKey ( $ name ) ; if ( null === $ accessToken ) { $ this -> pool -> deleteItem ( $ cacheKey ) ; return ; } $ item = $ this -> pool -> getItem ( $ cacheKey ) -> set ( new AccessToken ( $ name , $ accessToken ) ) ; $ this -> pool -> save ( $ item ) ; }
Store the access token in the storage.
Store the access token in the storage .