Browse Source

companion: logout / revoke support for OneDrive

ifedapoolarewaju 5 years ago
parent
commit
b73d461bf8
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/@uppy/companion/src/server/provider/onedrive/index.js

+ 5 - 0
packages/@uppy/companion/src/server/provider/onedrive/index.js

@@ -91,6 +91,11 @@ class OneDrive {
       })
       })
   }
   }
 
 
+  logout (_, done) {
+    // access revoke is not supported by Microsoft/OneDrive's API
+    done(null, { revoked: false, manual_revoke_url: 'https://account.live.com/consent/Manage' })
+  }
+
   adaptData (res, username) {
   adaptData (res, username) {
     const data = { username, items: [] }
     const data = { username, items: [] }
     const items = adapter.getItemSubList(res)
     const items = adapter.getItemSubList(res)