Переглянути джерело

use shared storage for logout as well

Artur Paikin 6 роки тому
батько
коміт
695e2719f5
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      packages/@uppy/companion-client/src/Provider.js

+ 1 - 1
packages/@uppy/companion-client/src/Provider.js

@@ -53,7 +53,7 @@ module.exports = class Provider extends RequestClient {
   logout (redirect = location.href) {
   logout (redirect = location.href) {
     return this.get(`${this.id}/logout?redirect=${redirect}`)
     return this.get(`${this.id}/logout?redirect=${redirect}`)
       .then((res) => {
       .then((res) => {
-        this.storage.removeItem(this.tokenKey)
+        this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)
         return res
         return res
       })
       })
   }
   }