Getting {"isTrusted":false} when trying sign in with apple JS

I have this js code:

Code Block
document.addEventListener('AppleIDSignInOnSuccess', (data) => {
    //handle successful response
    console.log(data["detail"].authorization.id_token)
    response = parseJwt(data["detail"].authorization.id_token)
    email = response["email"]
    console.log(email)
    loginWithEmail(email)
//    console.log("APPLE SIGN IN SUCCESSFFUL");
});
//Listen for AppleId authorization failures
document.addEventListener('AppleIDSignInOnFailure', (error) => {
    //handle error.
    alert(JSON.stringify(error))
    console.log("APPLE SIGN IN UNSUCCESSFFUL");
});


And it just stopped working. Now every time I sign in I get "APPLE SIGN IN UNSUCCESSFFUL" and the error is {"isTrusted":false}. What are ways around this?

I have the same issue

I have the same issue also. the login was successful but the return message is {"isTrusted":false}.

I was struggling with this -- then I found this answer:

https://developer.apple.com/forums/thread/653774

Now, I am using "data.detail" -- and am seeing the information.

Getting {"isTrusted":false} when trying sign in with apple JS
 
 
Q