feat: add setSessionCookie(event, token) server utility #749
Annotations
6 errors and 1 warning
|
ci
Process completed with exit code 1.
|
|
[unit] test/require-user-session-typing.test.ts > requireUserSession typing regression #130 > uses augmented AuthUser/AuthSession types for return value and options:
test/require-user-session-typing.test.ts#L125
AssertionError: tsc failed:
../../../../../tmp/nuxt-better-auth-session-types-euFnoh/runtime/server/utils/session.ts(2,36): error TS2307: Cannot find module 'better-call' or its corresponding type declarations.
../../../../../tmp/nuxt-better-auth-session-types-euFnoh/runtime/server/utils/session.ts(4,56): error TS2307: Cannot find module 'better-call' or its corresponding type declarations.
../../../../../tmp/nuxt-better-auth-session-types-euFnoh/runtime/server/utils/session.ts(5,10): error TS2305: Module '"h3"' has no exported member 'appendResponseHeader'.
../../../../../tmp/nuxt-better-auth-session-types-euFnoh/runtime/server/utils/session.ts(84,30): error TS2339: Property '$context' does not exist on type '{ api: { getSession: (_ctx: unknown) => Promise<null>; }; }'.
: expected 2 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 2
❯ test/require-user-session-typing.test.ts:125:89
|
|
ci
Property '$context' does not exist on type '{ api: { getSession: (_ctx: unknown) => Promise<null>; }; }'.
|
|
ci
Module '"h3"' has no exported member 'appendResponseHeader'.
|
|
ci
Cannot find module 'better-call' or its corresponding type declarations.
|
|
ci
Cannot find module 'better-call' or its corresponding type declarations.
|
|
ci
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|