The client-side equivalent of the Google button variant: sign in
and see the raw + decoded ID token, no server involved. Uses
Sign in with Apple JS
with usePopup: true.
Before this works, unlike the Google showcase:
client_id, e.g. com.example.webapp.
localhost,
even for the popup flow — redirectURI must match
a real domain you own, served over HTTPS.
https://yourdomain/.well-known/apple-developer-domain-association.txt
(exact path, no redirects, served as text/plain).
This applies to the popup flow too, not just redirect-based
integrations — and the downloaded file is only valid
for 7 days, so expect to re-verify periodically.
CLIENT_ID in variant-popup/index.html
with your Services ID.
Once it's signed in, you're done — the token in this page is exactly what you'd hand off to whatever other system verifies and consumes it. Verifying the signature (and, if you ever need Apple's own access/refresh tokens, exchanging the auth code) happens wherever you integrate it, not here.