Panel terminé + Refresh token auto

This commit is contained in:
Zachary Guénot
2023-05-11 00:51:59 +02:00
parent 8846299424
commit 6bc5e67cbc
4 changed files with 15 additions and 13 deletions

View File

@@ -9,5 +9,5 @@ module.exports = async function (client_id, client_secret, refresh_token) {
}).then(response => {
//console.log(response.data)
if (response.data.token_type === 'bearer') return [response.data.access_token, response.data.refresh_token]
}).catch(error => { console.log(error.response.data) })
}).catch(error => { return error.response.data })
}