Hello, i am a new user and would like to find the login count of a user so that i can send a welcome email to my new users. I have read about var loginCount = ctx.stats.loginsCount but don’t really know how that works and i’m also using koa so idk if it works with that. Thanks in advance.
You can have an action as part of the Login Flows and capture this detail.
exports.onExecutePostLogin = async (event, api) => {
if (event.stats.logins_count == 1) {
/* what would you like to do? */
}
}
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.