How can I get the user to sign up or login using their Google account?
You'll need to setup Google as an OAuth provider in your appwrite project. After it's set up, use https://appwrite.io/docs/client/account?sdk=web-default#accountCreateOAuth2Session for login/signup
Okay thank you will check it out
please is it necessary i hid my API key and if it is how do i hid it? thank u
which API key are you reffering could you pls clarify? are you referring to the one which is console for server side sdk?
btw general idea is to never share any keys till it's not explicilty get asked
The one i kept in my appwriteconfig file- account creation
you mean the project id?
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
const promise = account.create('[USER_ID]', 'email@example.com', '');
.setProject('5df5acd0d48c2') <------- is this what you're talking about?
Recommended threads
- Appwrite sites
I have built saas using react and tanstack, when I connect my repo(private) with appwrite sites, deployment works properly but screenshot capture fails, and whi...
- A resource limit has been exceeded for t...
Hi. My website has been blocked for exceeding the limit, and out of the 5GB I only used 1.18MB, while the email says 6.36GB. Project Id: 6908f95b002d8ad8d320
- Can I create a transaction that involves...
i want to create a row un `auth.users` and then create a user in a table `profiles` but i want to use the same id for both tables. So, if insert a row in pro...