Skip to content

Commit

Permalink
chore: remove autenticate after update token not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis committed Jan 16, 2024
1 parent a1205c6 commit 1a68c8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions functions/lib/bling-auth/renovate-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = async () => {

const handleAuth = (clientId, clientSecret, code = undefined, storeId, refreshToken) => {
console.log('> Bling Auth02 ', storeId)
auth(clientId, clientSecret, code, storeId, refreshToken)
return auth(clientId, clientSecret, code, storeId, refreshToken)
.then((data) => {
console.log('> Bling token => ', JSON.stringify(data))
if (documentRef) {
Expand All @@ -42,7 +42,6 @@ module.exports = async () => {
updatedAt: Timestamp.now()
}).catch(console.error)
}
authenticate(data.access_token)
})
.catch(reject)
}
Expand Down

0 comments on commit 1a68c8a

Please sign in to comment.