Use redirectToHandler in StackHandler and disallow string default URL… #4379
Annotations
4 errors and 1 warning
|
build (22.x)
Process completed with exit code 1.
|
|
tests/backend/endpoints/api/v1/projects.test.ts > gets current project (internal):
apps/e2e/tests/backend/endpoints/api/v1/projects.test.ts#L37
Error: Snapshot `gets current project (internal) 1` mismatched
- Expected
+ Received
@@ -1,9 +1,10 @@
NiceResponse {
"status": 200,
"body": {
"config": {
+ "allow_localhost": true,
"allow_team_api_keys": false,
"allow_user_api_keys": false,
"client_team_creation_enabled": true,
"client_user_deletion_enabled": false,
"credential_enabled": true,
❯ tests/backend/endpoints/api/v1/projects.test.ts:37:20
|
|
tests/js/cross-domain-auth.test.ts > does not await pending auth resolutions when post-callback redirect mints a cross-domain code:
apps/e2e/tests/js/cross-domain-auth.test.ts#L244
AssertionError: expected [Function] to throw error including 'INTENTIONAL_TEST_ABORT' but got 'Stack Auth is unable to connect to th…'
- Expected
+ Received
- INTENTIONAL_TEST_ABORT
+ Stack Auth is unable to connect to the server. Please check your internet connection and try again.
+
+ If the problem persists, please contact support and provide a screenshot of your entire browser console.
+
+ RetryError: Error after 5 attempts.
+
+ Attempts 1-5:
+ TypeError: fetch failed
+ Stack:
+ at node:internal/deps/undici/undici:14976:13
+ at processTicksAndRejections (node:internal/process/task_queues:103:5)
+ at StackClientInterface.sendClientRequestInner (/home/runner/work/stack-auth/stack-auth/packages/stack-shared/src/interface/client-interface.ts:707:16)
+ at Object.retry (/home/runner/work/stack-auth/stack-auth/packages/stack-shared/src/utils/results.tsx:374:17)
+ at StackClientInterface._networkRetry (/home/runner/work/stack-auth/stack-auth/packages/stack-shared/src/interface/client-interface.ts:383:27)
+ at /home/runner/work/stack-auth/stack-auth/packages/stack-shared/src/interface/client-interface.ts:510:14
+ at StackClientInterface._withFallback (/home/runner/work/stack-auth/stack-auth/packages/stack-shared/src/interface/client-interface.ts:232:14)
+ at StackClientInterface.sendClientRequest (/home/runner/work/stack-auth/stack-auth/packages/stack-shared/src/interface/client-interface.ts:509:12)
+ at StackClientInterface.sendClientRequestAndCatchKnownError (/home/runner/work/stack-auth/stack-auth/packages/stack-shared/src/interface/client-interface.ts:593:24)
+ at StackClientInterface.getClientProject (/home/runner/work/stack-auth/stack-auth/packages/stack-shared/src/interface/client-interface.ts:1778:29)
+ Cause:
+ AggregateError:
+ Stack:
+ at internalConnectMultiple (node:net:1134:18)
+ at afterConnectMultiple (node:net:1715:7)
+ Extra properties: { "code": "ECONNREFUSED" }
+
+ {
+ "cfTrace": "OK",
+ "baseUrlBackend": "TypeError: fetch failed",
+ "prodDashboard": "OK",
+ "prodBackend": "OK"
+ }
❯ tests/js/cross-domain-auth.test.ts:244:7
❯ withHostedDomainSuffix tests/js/cross-domain-auth.test.ts:12:5
❯ tests/js/cross-domain-auth.test.ts:216:3
|
|
tests/js/cross-domain-auth.test.ts > only treats hosted OAuth callback URLs as Stack callbacks when the matching state cookie exists:
apps/e2e/tests/js/cross-domain-auth.test.ts#L191
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ tests/js/cross-domain-auth.test.ts:191:75
❯ withHostedDomainSuffix tests/js/cross-domain-auth.test.ts:12:11
❯ tests/js/cross-domain-auth.test.ts:176:9
|
|
build (22.x)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635, pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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/
|