Skip to content

Cookie storage limit problem with Cognito #10498

Open
@adilek

Description

@adilek

Before opening, please confirm:

JavaScript Framework

React

Amplify APIs

Authentication

Amplify Categories

auth

Environment information

# Put output below this line

Not relevant

Describe the bug

When Cognito user pool client id changes, new sign-in tries to create new cookie elements. Eventually it gets larger. Then CloudFront blocks it.

One possible solution would be clearing all Cognito related cookies before new signin.

There are already two tickets for this matter. But Amplify team seems ignore them. Not customer obsessive :)

#1545
#5330 (comment)

Expected behavior

No server-side error must happen.

Reproduction steps

To reproduce:

  1. Log in to your app using Cognito.
  2. Change the client id in Cognito.
  3. Login again.
  4. Repeat 1.

After 3rd iteration you get the error message from the CloudFront.

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuthRelated to Auth components/categoryCognitoRelated to cognito issuesService TeamIssues asked to the Service Teamfeature-requestRequest a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions