
Hi there,
I am currently exploring apple sign in using Appwrite. Google works great, but when I log in using my apple ID there is no name returned. Both the first time, and times after that.
And apple has the function the hide the user's email. Apple provides an private for them. But when I select this function, my actual email is returned instead of the one generated by apple.
How can I solve these two problems?
Would love to hear your thoughts. Code pasted below.
// Functie om in te loggen async function handleGoogleLogin() { account.createOAuth2Session( 'google', 'https://just-roomies.com/test-login2.html', 'https://just-roomies.com/test-login2-fail.html' ) };
async function handleAppleLogin() {
account.createOAuth2Session(
'apple',
'https://just-roomies.com/test-login2.html',
'https://just-roomies.com/test-login2-fail.html'
)
};
async function getUser() {
try{
const user = await account.get()
renderProfileScreen(user)
}catch(error) {
renderLoginScreen()
}
}
function renderLoginScreen() {
loginScreen.classList.remove('hidden');
}
function renderProfileScreen(user) {
userName.textContent = user.name;
console.log(user)
profileScreen.classList.remove("hidden");
}
function handleLogout() {
account.deleteSession('current')
profileScreen.classList.add("hidden");
renderLoginScreen()
}
getUser()
Recommended threads
- Realtime Disconnects and Error: INVALID_...
Hi! I just want to ask here if there's any workaround with the disconnect issues we're encountering when subscribing to realtime events in react native using ex...
- Appwrite Fra Cloud Custom Domains Issue
I’m trying to configure my custom domain appwrite.qnarweb.com (CNAME pointing to fra.cloud.appwrite.io with Cloudflare proxy disabled) but encountering a TLS ce...
- Appwrite service :: getCurrentUser :: Us...
Getting this error while creating a react app can someone please help me solve the error
