Hello, everyone.
I dont have rich experience in Expo and React native. So I dont know well if my question contains too basic or simple.
I am developing one app using Expo and this needs Apple Authentication.
So I followed this reference and used the same code. But when I enter sign in page, I can see this error on both real device and iOS emulator.
If someone faced this issue before or already implemented Apple Authentication using Expo, please help me. Thank you for reading my article.
Thank you very much. After upgrade version to 35, I can see this api is working.
So now I can see AppleAuthenticationCredentialState is AUTHORIZED.
Sorry but I have another question. After that how can I get user`s info such as email address and full name? Are there any APIs?
I tried like this;
let urlBody = `code=${authorizationCode}&client_id=${clientId}&grant_type=authorization_code`;
const res = await fetch(`https://appleid.apple.com/auth/token`, {
method: 'POST',
body: urlBody,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
});
But the result was ‘invalid_client’. Hope to help me. Thanks again.