Back

#setKey

  • 0
  • Users
  • Accounts
  • Apple
Pedro Mendes
7 May, 2023, 21:06

Hi guys, im pretty new here and i'm starting to use appwrite and i already got some stuff done ๐Ÿ™‚ But i think i hit a road block, that perhaps is simple one to resolved. I'm following the documentation and when i'm and several places appears this ".setKey(" to define the client but when i try to use this on my project this message "vale of type 'Client' has no member 'setKey'". Can you guys help me understand what im doing wrong ๐Ÿ˜ฆ

TL;DR
The user is trying to use the ".setKey()" method in their Appwrite project but is getting an error. Another user replies that the ".setKey()" method is not available for the client-side SDK they are using, and suggests referring to the documentation for more information. No solution is provided in the thread.
Binyamin
7 May, 2023, 21:14

You two types of Appwrite SDKs One for clieny access and one for server side access You can see more about it here https://appwrite.io/docs/functions

In your code your accessing the client one which don't have the by key option.

Binyamin
7 May, 2023, 21:15

In your case you're it seems like you're trying to connect from the client Apple iOS side and this SDK will work on client mode

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more