/** * Returns the storage key as a filename * @param string $key * @return string */ public function getStorageKey($key) { return parent::getStorageKey($key . $this->_userKey) . self::EXTENSION; }
/** * Set the accessToken * @param string $accessToken */ public function login($accessToken) { $this->_accessToken = new AccessToken(['access_token' => $accessToken]); $this->storage->set('token', $this->_accessToken); }