Feature : Added server side verification for all routes . #4322
Annotations
4 errors
Run Vitest Tests:
src/components/SecuredRoute/SecuredRoute.tsx#L44
TypeError: Cannot read properties of undefined (reading 'verifyRole')
❯ SecuredRoute src/components/SecuredRoute/SecuredRoute.tsx:44:12
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
Run Vitest Tests:
src/utils/useSession.tsx#L59
Invariant Violation: An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#%7B%22version%22%3A%223.11.8%22%2C%22message%22%3A50%2C%22args%22%3A%5B%5D%7D
❯ new InvariantError node_modules/ts-invariant/lib/invariant.js:11:28
❯ Object.originalInvariant [as invariant] node_modules/ts-invariant/lib/invariant.js:24:15
❯ Object.invariant node_modules/@apollo/client/utilities/globals/invariantWrappers.js:28:9
❯ useApolloClient node_modules/@apollo/client/react/hooks/useApolloClient.js:22:5
❯ Proxy.useMutation node_modules/@apollo/client/react/hooks/useMutation.js:57:18
❯ Module.useSession [as default] src/utils/useSession.tsx:59:25
❯ SignOut src/components/SignOut/SignOut.tsx:25:11
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { framesToPop: 1 }
|
Run Vitest Tests:
src/utils/useSession.tsx#L59
Invariant Violation: An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#%7B%22version%22%3A%223.11.8%22%2C%22message%22%3A50%2C%22args%22%3A%5B%5D%7D
❯ new InvariantError node_modules/ts-invariant/lib/invariant.js:11:28
❯ Object.originalInvariant [as invariant] node_modules/ts-invariant/lib/invariant.js:24:15
❯ Object.invariant node_modules/@apollo/client/utilities/globals/invariantWrappers.js:28:9
❯ useApolloClient node_modules/@apollo/client/react/hooks/useApolloClient.js:22:5
❯ Proxy.useMutation node_modules/@apollo/client/react/hooks/useMutation.js:57:18
❯ Module.useSession [as default] src/utils/useSession.tsx:59:25
❯ SignOut src/components/SignOut/SignOut.tsx:25:11
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { framesToPop: 1 }
|
Run Vitest Tests
Process completed with exit code 1.
|
Loading