Git Product home page Git Product logo

Comments (20)

MarekBodingerBA avatar MarekBodingerBA commented on June 15, 2024 4

@cwomack We were able to contact some of the users that it's happening to and with high certainty we can tell that it is device specific issue (however the user agents don't differ from successfully sign-ins), the same people were able to sign-in on a different device.

Also, it seems that these are not new users, so we think some residual cookies / local storage values can interfere with login, so we are now testing this approach:
https://github.com/bratislava/konto.bratislava.sk/pull/924/files

We will inform you if it worked.

from amplify-js.

MarekBodingerBA avatar MarekBodingerBA commented on June 15, 2024 3

@erinleigh90 (Un)fortunately we haven't had any occurrences of the error since 5th March (with couple of thousands successful sign-ins). We deployed this on 8th March, so we cannot evaluate.

from amplify-js.

mpinter avatar mpinter commented on June 15, 2024 1

@HuiSF hi. I'm also one of the maintainers of this project, filling in some of the data requested:

  1. the following user has these issues for sure - 2bf74b91-22f2-46c4-b342-74ede104a7e4 . We can probably get more if needed.
  2. we have a post authentication trigger which adds/updates a custom:sign_in_at property, adding code below:
import AWS from "aws-sdk";

export const handler = async (event) => {
  console.log(event);
  const userSub = event.request?.userAttributes?.sub;
  if (!userSub) {
    throw new Error("No userSub found in event.request.UserAttributes");
  }

  const cognitoIdentity = new AWS.CognitoIdentityServiceProvider({
    accessKeyId: process.env.AWS_COGNITO_ACCESS,
    secretAccessKey: process.env.AWS_COGNITO_SECRET,
    region: process.env.AWS_COGNITO_REGION,
  });

  await cognitoIdentity
    .adminUpdateUserAttributes({
      UserAttributes: [
        {
          Name: "custom:sing_in_at",
          Value: new Date().toISOString(),
        },
      ],
      UserPoolId: process.env.AWS_COGNITO_USERPOOL_ID,
      Username: userSub,
    })
    .promise();

  return event;
};

edit: today we're not relying too much on this extra attribute, it helped us with user migration some time ago - so if there's a chance this will help the issue, we can just turn this trigger off - in fact, I'll do it right away to collect some data on this

  1. did not see any. So far we haven't tried logging in as this user (will probably need to contact them through support about changing their password to a temporary one), but I've copied over all of their user attributes except for sub and email into another account and could not reproduce the problem this way

from amplify-js.

mpinter avatar mpinter commented on June 15, 2024 1

Updated info - we've tried changing the pw and logging into the 2bf74b91-22f2-46c4-b342-74ede104a7e4 user account and could not reproduce the issue. Waiting on confirmation from the user whether the issue keeps happening on their side.

We've added the user agent info to our production logs, if we catch a new instance of the issue we'll be able to provide those.

from amplify-js.

israx avatar israx commented on June 15, 2024

This exception happens usually when there is a domain miss match after the user is being authenticated. For instance,
if your cookies are configured with the http://www.a.com/ domain, and your users are authenticated on the http://app.a.com/ domain.

Will your end-users always be authenticated into one domain ? Or is this domain changing based on some scenarios ?

from amplify-js.

MarekBodingerBA avatar MarekBodingerBA commented on June 15, 2024

@israx Thank you for the response. I checked the logs, all the users are attempting to sign-in on:

https://konto.bratislava.sk/prihlasenie

This doesn't differ in any way from successful logins. We don't use any other domains and there are no dynamic scenarios.

from amplify-js.

HuiSF avatar HuiSF commented on June 15, 2024

Hi @MarekBodingerBA Do you have any data from the logs that what browsers were these users using?

from amplify-js.

MarekBodingerBA avatar MarekBodingerBA commented on June 15, 2024

@HuiSF Nothing suspicious from my side, I extracted the related fields from the logs:

[
  {
    "timestamp": "2024-03-27 17:50:24.152 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-27 12:37:37.676 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-26 09:43:34.794 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-26 09:41:26.091 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-26 09:41:21.287 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-26 08:31:59.649 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 19:36:17.622 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 19:35:07.353 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 19:35:04.191 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 19:34:40.425 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:51:36.461 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:50:26.744 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:50:06.146 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:49:50.875 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:48:26.003 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:48:20.752 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:34:51.655 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:34:50.68 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:34:47.989 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:34:45.351 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 14:34:41.781 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-25 13:31:26.931 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-25 13:28:46.703 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-25 13:19:48.978 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 13:17:23.145 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 13:16:54.69 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 13:16:20.432 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 13:15:59.012 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-25 09:42:41.39 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 22:34:30.509 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 22:34:22.573 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:38:03.833 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:38:00.755 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:37:56.976 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:36:35.451 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:36:32.488 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:36:28.588 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:36:02.692 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:35:44.373 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:35:38.33 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:35:26.65 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:35:17.842 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 16:35:02.6 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-24 12:11:55.821 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-23 20:13:47.201 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-23 20:13:21.111 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-23 19:12:10.936 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-23 19:12:06.819 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-23 19:11:52.611 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-23 19:11:49.057 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-22 17:11:58.827 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-22 16:09:09.61 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-22 16:09:02.101 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "123.0.0.0"
  },
  {
    "timestamp": "2024-03-22 12:55:23.696 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-22 10:18:19.474 +0000 UTC",
    "browser_name": "Edge",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-22 10:17:28.98 +0000 UTC",
    "browser_name": "Edge",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-22 09:02:50.262 +0000 UTC",
    "browser_name": "Edge",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 18:00:21.509 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 17:59:31.592 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 17:59:23.61 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 17:57:45.158 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 17:57:40.545 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 17:57:28.313 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 12:14:14.401 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-21 09:52:58.22 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 09:51:47.974 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 09:51:04.454 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 09:50:54.693 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-21 07:57:23.62 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 14:30:27.379 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 13:31:14.26 +0000 UTC",
    "browser_name": "Edge",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 13:30:38.59 +0000 UTC",
    "browser_name": "Edge",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 11:28:18.577 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 11:11:56.407 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 11:10:36.807 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 08:45:53.712 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 08:45:32.312 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:55:14.879 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:54:57.641 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:54:54.896 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:54:42.645 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:54:39.394 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:53:52.536 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:53:39.47 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:53:08.673 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:52:56.261 +0000 UTC",
    "browser_name": "Opera",
    "browser_os": "Windows 10",
    "browser_version": "107.0.0.0"
  },
  {
    "timestamp": "2024-03-20 07:18:03.105 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 06:16:19.871 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 06:13:29.932 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-20 06:13:19.518 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-19 17:28:54.368 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-19 17:24:17.409 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-19 17:20:25.379 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-19 17:20:17.066 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-19 17:19:55.868 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-19 12:53:18.545 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-19 12:52:57.297 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 21:14:51.569 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-18 21:14:23.605 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-18 18:22:20.874 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-18 18:21:12.614 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 18:21:02.63 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 12:20:17.936 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 12:19:26.339 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 12:19:07.326 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 12:17:34.875 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 09:43:00.501 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 09:42:49.344 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 09:42:46.013 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 09:42:42.682 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 07:28:28.075 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 07:27:08.705 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 05:19:57.907 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 05:19:31.198 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 05:18:56.147 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 05:18:48.561 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 05:18:46.662 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-18 05:18:42.764 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:43.348 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:42.123 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:40.675 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:38.869 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:37.547 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:34.922 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:32.082 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:30.617 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:27.243 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:26:24.726 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-17 16:25:42.688 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-15 19:55:54.851 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "121.0.0.0"
  },
  {
    "timestamp": "2024-03-15 08:33:08.934 +0000 UTC",
    "browser_name": "Edge",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-15 08:32:34.515 +0000 UTC",
    "browser_name": "Edge",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 19:37:29.099 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 19:37:08.498 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 19:37:00.602 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 19:36:50.515 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Android 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 15:32:06.809 +0000 UTC",
    "browser_name": "Facebook",
    "browser_os": "Android 12",
    "browser_version": "454.1.0.49.104"
  },
  {
    "timestamp": "2024-03-14 15:31:51.103 +0000 UTC",
    "browser_name": "Facebook",
    "browser_os": "Android 12",
    "browser_version": "454.1.0.49.104"
  },
  {
    "timestamp": "2024-03-14 15:26:24.024 +0000 UTC",
    "browser_name": "Facebook",
    "browser_os": "Android 12",
    "browser_version": "454.1.0.49.104"
  },
  {
    "timestamp": "2024-03-14 14:39:18.479 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 14:39:12.391 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 14:38:57.817 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 14:38:50.514 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 14:31:50.446 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 14:31:40.052 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 12:27:05.123 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 12:26:53.622 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 12:26:49.336 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 12:26:43.105 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 12:26:39.144 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  },
  {
    "timestamp": "2024-03-14 12:26:35.635 +0000 UTC",
    "browser_name": "Chrome",
    "browser_os": "Windows 10",
    "browser_version": "122.0.0.0"
  }
]

from amplify-js.

HuiSF avatar HuiSF commented on June 15, 2024

Thanks @MarekBodingerBA and yes I don't see anything that is abnormal.

When you are saying you were not able to reproduce this issue, did you try to login using the credentials of a real user who was not able to login?

There could be something that causes the library token parsing logic to fail while retrieving authentication tokens from the cookie store (per {ssr: true}) right after a successful sign-in. Could you provide the following information?

  1. the username value of a user who was not able to sign in due to this issue, it should be the value of the user name column seen in the Cognito console
  2. Do you have any pre token lambda trigger that manipulates auth tokens before sending back to the client during a sign in process?
  3. Are there any special characters get embedded into the auth tokens?

from amplify-js.

cwomack avatar cwomack commented on June 15, 2024

Thank you @mpinter for the extra context here. We'll try to reproduce this on our side then, but if you find a way to more reliably reproduce then let us know!

CC: @MarekBodingerBA

from amplify-js.

cwomack avatar cwomack commented on June 15, 2024

@mpinter and @MarekBodingerBA, are either one of you able to join us on a call to demo/reproduce the behavior (if possible) and allow us to review your Cognito setup? So far, we have been unable to reproduce the issue so far (using the publicly available code that's been provided. We'd also like to know the following, but can cover this in a call if you would prefer:

  • Did disabling your lambda trigger help anything?
  • Are the impacted customers continually/consistently running into this every time? And are there commonalities with their email addresses such as special characters?
  • Are you able to obtain the user-agent data from impacted customers or do you have any environment information that might assist here?

** Please do not share any email addresses of the customers publicly on this GitHub issue

from amplify-js.

mpinter avatar mpinter commented on June 15, 2024

@cwomack would be happy to jump on a call (and thank's a lot for being involved in this). We can likely arrange with both of us with @MarekBodingerBA , probably Tuesday the earliest as Monday is still easter holiday, or later in the week if preferred.

So far:

  • disabling the trigger unfortunately did not seem to help, we can still see the error mentioned earlier in the logs happening. Have not yet been in contact with the user with whom we've verified the problem, but we're assuming the errors are not from a different unrelated issue
  • it seems that for the impacted customers it happens on every login attempt - the one we're in contact tried resetting pw after multiple attempts (and a couple days) and logging in again, and it did not help either. We still need to get in touch and try to login directly into this users account. The one user we're experimenting with does not have any special characters in any of the attributes, only english lower/uppercase letters, @ and . in email and a single "รก" character in given_name attribute (but we have those in a lot of users). I've looked for any hidden whitespace or weirdness in the attributes, none found. After last attempt I've also tried temporarily changing the email on another account to the same one copied from the accounts attributes, just adding an extra character at the end, and could not reproduce the issue. But as for the commonalities, we still need to try fishing out other users - we don't have the ids of the users affected from the logs, the one we have we have been able to link to a support ticket with screenshot with the time of the error happening.
  • unfortunately nothing beyond what is in this comment - #13182 (comment)

from amplify-js.

cwomack avatar cwomack commented on June 15, 2024

@mpinter, thanks for the update. Let us know if you're able to catch the new instance of this.

As for a call to review/connect, could you reach out to me on our Discord server and send me a DM with your email? Want to keep it off the public issue here. Have the same alias/handle there as here on Github, @cwomack.

from amplify-js.

erinleigh90 avatar erinleigh90 commented on June 15, 2024

@MarekBodingerBA Have you been able to validate this approach or are you still seeing this issue?

from amplify-js.

MarekBodingerBA avatar MarekBodingerBA commented on June 15, 2024

We haven't had the exception since then, I am closing the issue.

from amplify-js.

yp717 avatar yp717 commented on June 15, 2024

We are experiencing the same issue. I believe it may be related to the mismatch in the cookie store between Amplify v5 and v6. Our working hypothesis is that for users that were signed in during the upgrade to v6, there may be a mismatch in amplify's expectations that does not refresh the state correctly. After clearing the cookies manually, we are able to sign in with a user account that was affected by the switch.

from amplify-js.

armenr avatar armenr commented on June 15, 2024

We're getting bitten by this exact behavior currently...we're totally stuck. Unclear what a fix may be.

from amplify-js.

MarekBodingerBA avatar MarekBodingerBA commented on June 15, 2024

I am reopening the issue, we've had an occurrence on May 10th, we also have a log where user cookies has been removed, but the user didn't try to sign in again unfortunately, so we cannot really say if it helped or not.

from amplify-js.

cwomack avatar cwomack commented on June 15, 2024

@yp717, @armenr, @MarekBodingerBA, @mpinter

We'll look into this further and try to reproduce. Do any of you have a minimal sample repo where this is easily reproduced in a Next.js app? We've tried to reproduce with the repo/samples originally provided in this issue, but didn't have any luck on our side.

from amplify-js.

mwernsen avatar mwernsen commented on June 15, 2024

I've just ran into the UnexpectedSignInInterruptionException myself as well, with the additional message: "Unable to get user session following successful sign-in". They are only showing up in the webkit browser, so as @MarekBodingerBA wrote, it might be device specific.

I ran into these issue while settings op playwright testing for my NextJs application. The very basic sign-in test succeeds on chromium and firefox browser, but fails for the webkit browser. I'm running the most recent version of amplify: 6.3.2.

from amplify-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.