8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df762b commit 54efbedCopy full SHA for 54efbed
packages/api/src/index.js
@@ -7,7 +7,7 @@ const baseURL = process.env.ODOO_HOST || 'http://0.0.0.0:8069'
7
const odoo = new Odoo({ baseURL })
8
9
const getToken = (req) => {
10
- const token = req.headers['Authorization'] || req.headers['authorization'] || 'aa31176b347590eb1b52fdd33a7d923cabfc81d2'
+ const token = req.headers['Authorization'] || req.headers['authorization']
11
if (!token) throw new Error('Missing access token')
12
return token
13
}
@@ -202,4 +202,4 @@ const APIs = [
202
]
203
204
const server = micro(router(...APIs))
205
-export default server
+export default server
0 commit comments