瀏覽代碼

examples: update configs for Companion 2.0+

Renée Kooi 4 年之前
父節點
當前提交
f6b9106dbe
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/aws-companion/server.js
  2. 1 1
      examples/uppy-with-companion/server/index.js

+ 1 - 1
examples/aws-companion/server.js

@@ -18,7 +18,7 @@ app.use(require('express-session')({
 
 const options = {
   providerOptions: {
-    google: {
+    drive: {
       key: process.env.COMPANION_GOOGLE_KEY,
       secret: process.env.COMPANION_GOOGLE_SECRET
     },

+ 1 - 1
examples/uppy-with-companion/server/index.js

@@ -34,7 +34,7 @@ app.get('/', (req, res) => {
 // initialize uppy
 const uppyOptions = {
   providerOptions: {
-    google: {
+    drive: {
       key: 'your google key',
       secret: 'your google secret'
     },