Skip to content

Cookie multiplying eventually kills server with header too large code 431 #76

@Aavora-MT

Description

@Aavora-MT

Describe the bug
After upgrading from v0.5.0 and also v0.6.0 to v0.7.0 an error occurs that creates a new cookie on each page navigation. The cookies have the same starting prefix but then end with a unique hash.

e.g. wos-auth-verifier-5eec94bb, wos-auth-verifier-904414d8, wos-auth-verifier-ad9fd491

After browsing round enough pages (approx a dozen or so, it varies from time to time) the server starts returning 431 error codes with the message the request header fields are too large.

To Reproduce
Install the v0.7.0 package, sign in to your application and start navigating between application pages, after a while when the cookies reach a tipping point the server will reject the requests.

Expected behavior
A new cookie should not be added on each page request

Screenshots
Image

Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser Chrome
  • authkit-tanstack-start version 0.7.0
  • TanStack Start version 1.167

Additional context
It's unclear if this is going to be fixed by the PR that is already open for #72 so I thought best to raise it as a separate bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions