Skip to content

Commit 9386977

Browse files
committed
fix: ignore for social users
1 parent 50df93f commit 9386977

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web-assets/auth0/dev-tenant/rules/onboardingChecklist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ function (user, context, callback) {
2828
handle = _.get(user, "nickname", null);
2929
}
3030

31-
if (handle == null) {
32-
return callback();
33-
}
34-
35-
3631
console.log("rule:onboarding-checklist: fetch onboarding_checklist for email/handle: ", user.email, handle, provider);
3732

33+
// TODO: Properly fetch handle for social logins
34+
if (handle == null || isSocial) {
35+
return callback(null, user, context);
36+
}
37+
3838
const createdAt = _.get(user, "created_at", null);
3939
const thresholdDate = moment(configuration.PROFILE_CREATION_DATE_THRESHOLD, "YYYY-MM-DD");
4040

0 commit comments

Comments
 (0)