\n {\n e.preventDefault();\n submit();\n }}\n >\n \n \n \n\n\n\n```","author":{"@type":"Person","name":"Honzosaurus_3.1415926535"},"datePublished":"2024-03-04T10:43:00.795Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":0},"commentCount":13,"comment":[{"@type":"Comment","text":"Did you create a session using Account API before using the Databases APIs?","author":{"@type":"Person","name":"darShan"},"datePublished":"2024-03-04T10:44:04.638Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214161437119741982"},{"@type":"Comment","text":"I think I did","author":{"@type":"Person","name":"Honzosaurus_3.1415926535"},"datePublished":"2024-03-04T10:44:58.717Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214161663943647262"},{"@type":"Comment","text":"Umm no, I dont see any login.\nSee - https://appwrite.io/docs/products/auth/email-password","author":{"@type":"Person","name":"darShan"},"datePublished":"2024-03-04T10:45:24.652Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214161772722913320"},{"@type":"Comment","text":"```ts\nexport const account = new Account(client);\n```","author":{"@type":"Person","name":"Honzosaurus_3.1415926535"},"datePublished":"2024-03-04T10:45:24.992Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214161774148853760"},{"@type":"Comment","text":"So I have to log the user in before they can use the db?","author":{"@type":"Person","name":"Honzosaurus_3.1415926535"},"datePublished":"2024-03-04T10:45:42.158Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214161846148276244"},{"@type":"Comment","text":"If the Databases permissions are set to Users.","author":{"@type":"Person","name":"darShan"},"datePublished":"2024-03-04T10:46:00.305Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214161922262302740"},{"@type":"Comment","text":"But how can I set the db permission so anybody can access it?","author":{"@type":"Person","name":"Honzosaurus_3.1415926535"},"datePublished":"2024-03-04T10:46:16.286Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214161989291614228"},{"@type":"Comment","text":"Your Database > Your Collection > Settings > Permissions > Manage the Permissions.\n\nHowever, granting read/write/update permissions to Any, Guest, All Users isn't a good security practice. What are you trying to do?","author":{"@type":"Person","name":"darShan"},"datePublished":"2024-03-04T10:48:10.123Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214162466758459482"},{"@type":"Comment","text":"Well thanks for that, this is just kind of a test project, so just a few ppl will look at it and have the access to the db therefor, you don't have to be worried about spam/bots","author":{"@type":"Person","name":"Honzosaurus_3.1415926535"},"datePublished":"2024-03-04T10:49:45.445Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214162866568167454"},{"@type":"Comment","text":"In that case, you could still do this -\nPermissions > All Users > Select permissions.\n\nOfc. this would require the users to register & login.\nFor registration, you can manually add the users via Auth dashboard & mark them as Verified.","author":{"@type":"Person","name":"darShan"},"datePublished":"2024-03-04T10:51:06.516Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214163206604329021"},{"@type":"Comment","text":"And if I'd do guest, anyone would have access to it without auth?","author":{"@type":"Person","name":"Honzosaurus_3.1415926535"},"datePublished":"2024-03-04T10:51:34.195Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214163322698473482"},{"@type":"Comment","text":"There a few gotchas here, for better info. see this doc -\nhttps://appwrite.io/docs/advanced/platform/permissions#permission-roles","author":{"@type":"Person","name":"darShan"},"datePublished":"2024-03-04T10:52:43.264Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214163612394848286"},{"@type":"Comment","text":"alright, thanks","author":{"@type":"Person","name":"Honzosaurus_3.1415926535"},"datePublished":"2024-03-04T10:53:18.495Z","url":"https://appwrite.io/threads/1214161169343062066#message-1214163760164638783"}]}}
Skip to content
Back
DatabasesWeb

401 Unauthorized

Votes

0

Replies

13

Participants

Unknown

Messages

14

Honzosaurus_3.1415926535Original post

Rank 1: Thread

darShan
Honzosaurus_3.1415926535

Rank 1: Thread

Honzosaurus_3.1415926535

Rank 1: Thread

Honzosaurus_3.1415926535

Rank 1: Thread

darShan
Honzosaurus_3.1415926535

Rank 1: Thread

darShan
Honzosaurus_3.1415926535

Rank 1: Thread

darShan
Honzosaurus_3.1415926535

Rank 1: Thread

Honzosaurus_3.1415926535

Rank 1: Thread

Join the discussion

Reply to this thread by joining our Discord.

Reply on Discord