Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field email_verified is being returned as boolean in apple flow #599

Open
orlandokaramani opened this issue Dec 16, 2024 · 3 comments · May be fixed by #608
Open

Field email_verified is being returned as boolean in apple flow #599

orlandokaramani opened this issue Dec 16, 2024 · 3 comments · May be fixed by #608

Comments

@orlandokaramani
Copy link

orlandokaramani commented Dec 16, 2024

After a successful authentication with apple, the field "emailVerified" is saved as false in Hasura. Investigating, the id_token coming from apple, is sending the field email_verified as boolean not string, while the comparison is being done as string.

Below the code snippet:

emailVerified: payload.email_verified === 'true',

Here you can find also the payload of the encoded id_token that is being returned from apple:

{
  "iss": "https://appleid.apple.com",
  "aud": "al.dev.better",
  "exp": 1734445964,
  "iat": 1734359564,
  "sub": "xxxx.xxx.xxx",
  "c_hash": "xxxx",
  "email": "[email protected]",
  "email_verified": true,
  "is_private_email": true,
  "auth_time": 1734359564,
  "nonce_supported": true
}
@KDShah71
Copy link

I'm experiencing this issue as well. My app was rejected by Apple because users can't sign in with Apple, which is a requirement for approval. Let me know if there's any update on this!

@dbarrosop
Copy link
Member

Hello,
would any of you be able to test the version 0.37.1-beta1, please?

Thanks!

@orlandokaramani
Copy link
Author

Yeap, I can confirm it is fixed. Thank's @dbarrosop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants