Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Incorrect number of sealed components #380

@dalalRohit

Description

@dalalRohit

The error I'm facing is definitely a very rare-case scenario but worth handling as a developer I guess.

When someone tampers/alters the encrypted cookie from the Cookies panel in DevTools, the app breaks completely with Incorrect number of sealed components as the error.

Screenshot 2021-07-25 at 11 43 05 PM

Is there any way I can catch this error?

Firstly, I thought it is coming from the point where the cookie is getting requested, i.e from where req.session.get(cookie_name) is called. So tried wrapping that in try/ catch but the error seems to be from either iron-store or @hapi/iron I guess.

Any help?

Rohit,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions