Rank 2: Process
How can I get the user to sign up or login using their Google account?
Votes
0
Replies
9
Participants
Unknown
Messages
10
Rank 2: Process
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
Rank 2: Process
Okay thank you will check it out
Rank 2: Process
please is it necessary i hid my API key and if it is how do i hid it? thank u
Rank 5: Hypervisor
which API key are you reffering could you pls clarify? are you referring to the one which is console for server side sdk?
Rank 5: Hypervisor
btw general idea is to never share any keys till it's not explicilty get asked
Rank 2: Process
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?