8000 Removed hardcode token · tools-utils/odoo-api@54efbed · GitHub
[go: up one dir, main page]

Skip to content

Commit 54efbed

Browse files
authored
Removed hardcode token
1 parent 2df762b commit 54efbed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/api/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const baseURL = process.env.ODOO_HOST || 'http://0.0.0.0:8069'
77
const odoo = new Odoo({ baseURL })
88

99
const getToken = (req) => {
10-
const token = req.headers['Authorization'] || req.headers['authorization'] || 'aa31176b347590eb1b52fdd33a7d923cabfc81d2'
10+
const token = req.headers['Authorization'] || req.headers['authorization']
1111
if (!token) throw new Error('Missing access token')
1212
return token
1313
}
@@ -202,4 +202,4 @@ const APIs = [
202202
]
203203

204204
const server = micro(router(...APIs))
205-
export default server
205+
export default server

0 commit comments

Comments
 (0)
0