Add IDNOT_API_KEY env

This commit is contained in:
Sosthene 2025-08-27 17:46:51 +02:00
parent 4f446cad5d
commit 9bfcb47293
2 changed files with 4 additions and 1 deletions

View File

@ -34,3 +34,6 @@ DB_PORT=
DB_NAME=
DB_USER=
DB_PASSWORD=
# Configuration idnot
IDNOT_API_KEY=

View File

@ -311,7 +311,7 @@ app.post('/api/v1/idnot/user/:code', async (req, res) => {
const payload = JSON.parse(Buffer.from(jwt.split('.')[1], 'base64').toString('utf8'));
const searchParams = new URLSearchParams({
key: 'ba557f84-0bf6-4dbf-844f-df2767555e3e'
key: process.env.IDNOT_API_KEY
});
let userData;