
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
- Duplicate name types with multiple datab...
Hello, we are having multiple databases and would like to use the cli to generate the types using (appwrite types --language ts), the issue is that the appwrit...
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
- PR Review and Issue Assign?
I am not familiar with how things work here. I know that Issue have to be assigned before solving problem, It is for not wasting contributors time but I like t...
