IO-3498 Remove setNewRefreshToken and replace forEach with map
Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
@@ -57,14 +57,3 @@ exports.refresh = async (oauthClient, req) => {
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
exports.setNewRefreshToken = async (email, apiResponse) => {
|
||||
// Deprecated - tokens are now auto-updated in the oauthClient and the token isn't pushed back from QBO API calls anymore
|
||||
|
||||
// logger.log("qbo-token-updated", "DEBUG", email, null, {apiResponse: apiResponse});
|
||||
|
||||
// await client.request(queries.SET_QBO_AUTH, {
|
||||
// email,
|
||||
// qbo_auth: { ...apiResponse.token, createdAt: Date.now() }
|
||||
// });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user