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
Cookies don't get sent to subsequent requests when using Eden with an Elysia instance. Even when credentials: include is set.
I'm using Elysia version 1.1.9 and Eden 1.1.2
I expect set credential cookies to be sent to subsequent request, as to be able to correctly test endpoints that need authentication and/or tokens.
Cookies do work correctly when performing actual requests to the server from another HTTP client.
Sample code:
test("...",async()=>{
...
constapp=server(db);// Creates an Elysia instanceconstclient=treaty(app,{fetch: {credentials: 'include'}});
...
constresponse=awaitclient.api.auth.token.post({email: "..."});constusers=awaitclient.api.users.get();// <-- This fails because cookies are not set
...
});
The text was updated successfully, but these errors were encountered:
Cookies don't get sent to subsequent requests when using Eden with an Elysia instance. Even when
credentials: include
is set.I'm using Elysia version
1.1.9
and Eden1.1.2
I expect set credential cookies to be sent to subsequent request, as to be able to correctly test endpoints that need authentication and/or tokens.
Cookies do work correctly when performing actual requests to the server from another HTTP client.
Sample code:
The text was updated successfully, but these errors were encountered: