You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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,
The text was updated successfully, but these errors were encountered:
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.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 intry/ catch
but the error seems to be from eitheriron-store
or@hapi/iron
I guess.Any help?
Rohit,
The text was updated successfully, but these errors were encountered: