Ok retour en arrière...
This commit is contained in:
@@ -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) })
|
||||
})
|
||||
Reference in New Issue
Block a user