Setting expiresAt override for internalAdapter.createSession doens't work

I'm trying to create a session using this function call:
const session = await ctx.context.internalAdapter.createSession(
user.id,
ctx.headers,
undefined,
{
expiresAt: addYears(new Date(), 1),
ipAddress: "test",
}
);
const session = await ctx.context.internalAdapter.createSession(
user.id,
ctx.headers,
undefined,
{
expiresAt: addYears(new Date(), 1),
ipAddress: "test",
}
);
This results in a session with the correct ipAddress (test) and with the default expiration time (7d), if this is an intended behavior, the types should reflect it and omit expiresAt.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?