In app/auth/mutations/login the ctx is an empty object ({}), thus this line:
await ctx.session.$create({ userId: user.id, role: user.role as Role });
trhows an Error: Cannot read property '$create' of undefined.
Only happens on vercel deployment, works fine on localhost.