backend/core/oauth/helpers.js
Function upsertUserAccount
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upsertUserAccount(user, account, callback) {
var status = 'created';
function accountExists(userAccount) {
return userAccount.type === account.type && userAccount.data && userAccount.data.provider === account.data.provider && userAccount.data.id === account.data.id;