Browse Source

Merge pull request #1326 from transloadit/fix/companion-storage

Companion Client: Use shared storage for logout as well
Artur Paikin 6 years ago
parent
commit
d0b0901a26
1 changed files with 1 additions and 1 deletions
  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) {
     return this.get(`${this.id}/logout?redirect=${redirect}`)
       .then((res) => {
-        this.storage.removeItem(this.tokenKey)
+        this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)
         return res
       })
   }