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
.onError(({ code, set,cookie: { accessToken, refreshToken }})=>{if(code==="NOT_FOUND")return{error: "Route not found :(",status: STATUS.ERROR};if(code==="INVALID_COOKIE_SIGNATURE")return{error: "Your cookies has been altered",status: STATUS.ERROR};set.status=500;return{error: "Internal Server Error",status: STATUS.ERROR};})
What is the expected behavior?
When cookies have been altered, it should respond with the format { error: "...", status: "ERROR" }
What do you see instead?
I am just getting raw text when cookies have been altered. onError is not getting called.
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Elysia.JS is running?
1.0.26
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
What is the expected behavior?
When cookies have been altered, it should respond with the format
{ error: "...", status: "ERROR" }
What do you see instead?
I am just getting raw text when cookies have been altered. onError is not getting called.
Additional information
No response
The text was updated successfully, but these errors were encountered: