Skip to content

Commit 5e63e39

Browse files
committed
feat: pass along user creation time
1 parent f7d464a commit 5e63e39

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

web-assets/auth0/dev-tenant/database/login.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function login(handleOrEmail, password, callback) {
5454
handle:user.result.content.handle,
5555
roles: user.result.content.roles,
5656
email_verified: user.result.content.emailActive,
57+
created_at: user.result.content.createdAt
5758
});
5859
});
5960
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ function (user, context, callback) {
1414
if (!handle && provider === "auth0") {
1515
handle = _.get(user, "nickname", null);
1616
}
17+
18+
let createdAt = _.get(user, "created_at", null);
19+
console.log('rule:onboarding-checklist: user created at', createdAt);
1720

1821
const getToken = function(callback) {
1922
if (global.M2MToken) {

0 commit comments

Comments
 (0)