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 · 0 comments
Open

Comments

@orlandokaramani
Copy link

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
}
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

No branches or pull requests

1 participant