I am using the Gmail social connection for login and setup a welcome email which is sent via SMTP (Gmail) email provider. However, for some users, they are receiving two to three welcome emails in a short time (within 2-3 minutes) after they login for the first time. Is this a bug or am I doing something wrong?
EDIT:
Seems like from the past few days, a welcome email is being sent to users every time they login.
Here are the logs of a user who has been sent 3 welcome emails - 1 email at each of the 3 timings mentioned in the logs (All 3 are recorded as a Success Login
event). client_id
, ip
, user_id
, user_name
values are hidden to protect privacy but the values are the same in all 3 logs
{
"date": "2017-12-20T01:46:26.644Z",
"type": "s",
"connection": "google-oauth2",
"connection_id": "con_c94TX4W5q5kStnnY",
"client_id": "<HIDDEN>",
"client_name": "Birthday Tracker",
"ip": "<HIDDEN>",
"user_agent": "Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1",
"details": {
"prompts":
{
"name": "oauth2-authenticate",
"initiatedAt": 1513734360301,
"completedAt": 1513734386331,
"timers": {
"rules": 297
},
"connection": "google-oauth2",
"elapsedTime": 26030
}
],
"initiatedAt": 1513734044354,
"completedAt": 1513734386641,
"elapsedTime": 342287,
"stats": {}
},
"user_id": "<HIDDEN>",
"user_name": "<HIDDEN>",
"strategy": "google-oauth2",
"strategy_type": "social",
"auth0_client": {
"name": "lock.js",
"version": "10.18.0",
"lib_version": "8.7.0"
},
"log_id": "49579568688084788852716023226483068531291786803790479362"
}
Log 2
{
"date": "2017-12-20T01:32:58.534Z",
"type": "s",
"connection": "google-oauth2",
"connection_id": "con_c94TX4W5q5kStnnY",
"client_id": "<HIDDEN>",
"client_name": "Birthday Tracker",
"ip": "<HIDDEN>",
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_1 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0 Mobile/15C153 Safari/604.1",
"details": {
"prompts":
{
"name": "oauth2-authenticate",
"initiatedAt": 1513733456119,
"completedAt": 1513733578213,
"timers": {
"rules": 302
},
"connection": "google-oauth2",
"elapsedTime": 122094
}
],
"initiatedAt": 1513733450358,
"completedAt": 1513733578530,
"elapsedTime": 128172,
"stats": {}
},
"user_id": "<HIDDEN>",
"user_name": "<HIDDEN>",
"strategy": "google-oauth2",
"strategy_type": "social",
"auth0_client": {
"name": "lock.js",
"version": "10.18.0",
"lib_version": "8.7.0"
},
"log_id": "49579568688084788852716023168521120109868335428446191618"
}
Log 3
{
"date": "2017-12-20T01:42:58.247Z",
"type": "s",
"connection": "google-oauth2",
"connection_id": "con_c94TX4W5q5kStnnY",
"client_id": "<HIDDEN>",
"client_name": "Birthday Tracker",
"ip": "<HIDDEN>",
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_1 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0 Mobile/15C153 Safari/604.1",
"details": {
"prompts":
{
"name": "oauth2-authenticate",
"initiatedAt": 1513734144286,
"completedAt": 1513734177943,
"timers": {
"rules": 286
},
"connection": "google-oauth2",
"elapsedTime": 33657
}
],
"initiatedAt": 1513734101145,
"completedAt": 1513734178244,
"elapsedTime": 77099,
"stats": {}
},
"user_id": "<HIDDEN>",
"user_name": "<HIDDEN>",
"strategy": "google-oauth2",
"strategy_type": "social",
"auth0_client": {
"name": "lock.js",
"version": "10.18.0",
"lib_version": "8.7.0"
},
"log_id": "49579568688084788852716023212244340227870670021730500610"
}