Ok retour en arrière...

This commit is contained in:
Zachary Guénot
2023-05-23 23:21:26 +02:00
parent a90960edfb
commit 6933537d2e
7 changed files with 7 additions and 7 deletions

View File

@@ -7,5 +7,5 @@ module.exports = getAppAccessToken = (async (client_id, client_secret) => {
grant_type: 'client_credentials'
}).then(response => {
if (response.data.token_type === 'bearer') return response.data.access_token
}).catch(console.error())
}).catch(error => { console.error(error.response.data) })
})