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

Node js backend example #50

Open
DaniFaro opened this issue Sep 1, 2021 · 1 comment
Open

Node js backend example #50

DaniFaro opened this issue Sep 1, 2021 · 1 comment

Comments

@DaniFaro
Copy link

DaniFaro commented Sep 1, 2021

Hi everyone,
I'm implementing this library inside my ionic capacitor application and I have a question.
Is there an example, possibly written in node js, describing a backend that responds to the redirectURI? I create a services id on Apple Developer Dashboard, but seems that the redirectURI is never called.

Thanks to all

@piotr-cz
Copy link
Contributor

piotr-cz commented Feb 1, 2024

I found such example here https://www.npmjs.com/package/react-apple-signin-auth#server-side-authentication-nodejs-backend

I think that redirectURI is no being used because this package uses usePopup: true

However:

  • Payload depends on what you are sening to backend - most probably in format of SignInWithAppleResponse
  • There is no way to verify fields user, email, givenName, familyName. Only what's in identityToken
  • The email, givenName, familyName fields are not provided by Apple in subsequent logins

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

2 participants