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

@@ -9,5 +9,5 @@ module.exports = getUserAccessToken = (async (client_id, client_secret, code, re
grant_type: 'authorization_code'
}).then(response => {
if (response.data.token_type === 'bearer') return [response.data.access_token, response.data.refresh_token]
}).catch(console.error())
}).catch(error => { console.error(error.response.data) })
})