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
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 |
Code is same as the video