Skip to content

401 user_unauthorized #19

Description

@09sunshine

POST /sign-up 500 in 1186ms
⨯ AppwriteException: The current user is not authorized to perform the requested action.
at async getUserByEmail (lib\actions\user.action.ts:14:17)
at async createAccount (lib\actions\user.action.ts:47:23)
12 | const { databases } = await createAdminClient();
13 |

14 | const result = await databases.listDocuments(
| ^
15 | appwriteConfig.databaseId,
16 | appwriteConfig.usersCollectionId,
17 | [Query.equal("email", [email])], {
code: 401,
type: 'user_unauthorized',
response: [Object],
digest: '1765243866'

Code is same as the video

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