Skip to content

signup, dashboard & account mgmnt throw "UNAUTHORIZED" (no infos found) #21

@Wivon

Description

@Wivon

What's happening:

After signing in, or signing up, some data is undefined (e.g. activeMembership, accountStore). Nothing is populated in the DB (tables "account" and "user" are still empty after creating several accounts).
This breaks the whole app: dashboard page is not populating since activeMembership isn't defined, same occurs for account page.

Error msg

TRPCError: UNAUTHORIZED
    at <anonymous> (/Users/lilian/Code-local/vecting-supanuxt/server/trpc/trpc.ts:39:11)
    at callRecursive (file:///Users/lilian/Code-local/vecting-supanuxt/node_modules/@trpc/server/dist/index.mjs:451:38)
    at resolve (file:///Users/lilian/Code-local/vecting-supanuxt/node_modules/@trpc/server/dist/index.mjs:481:30)
    at callProcedure (file:///Users/lilian/Code-local/vecting-supanuxt/node_modules/@trpc/server/dist/config-d5fdbd39.mjs:155:12)
    at inputToProcedureCall (file:///Users/lilian/Code-local/vecting-supanuxt/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs:46:28)
    at file:///Users/lilian/Code-local/vecting-supanuxt/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs:169:51
    at Array.map (<anonymous>)
    at resolveHTTPResponse (file:///Users/lilian/Code-local/vecting-supanuxt/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs:169:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at <anonymous> (/Users/lilian/Code-local/vecting-supanuxt/node_modules/trpc-nuxt/dist/index.mjs:49:26) {
  code: 'UNAUTHORIZED',
  [cause]: undefined
}

-> often with message: 'no user or active account information was found'

screenshots

Screenshot 2024-08-10 at 12 11 37
Screenshot 2024-08-10 at 12 12 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions