Estoy usando el inicio de sesión con Apple usando el siguiente enlace en la aplicación Nuxt:
https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.jsEntonces, el problema es que si no uso el indicador usePopup y uso el enlace del servidor con redirectURI, Apple hace una solicitud posterior a redirectURI y luego la solicitud se completa con éxito, pero no puedo obtener los datos del servidor. y si uso usePopup: true , entonces tengo que hacer la solicitud de publicación en el servidor y luego falla (respuesta de Apple: solicitud no válida) Estoy usando expressjs como servidor.
AppleID.auth.init({ clientId: "my-client-id", // This is the service ID we created. scope: "name email", // To tell apple we want the user name and emails fields in the response it sends us. redirectURI: "https://9b29-103-213-105-122.in.ngrok.io/login", // As registered along with our service ID state: "origin:web", // Any string of your choice that you may use for some logic. It's optional and you may omit it. usePopup: true, // Important if we want to capture the data apple sends on the client side. });luego, después de la respuesta del siguiente código, hago la solicitud de publicación:
this.appleResponse = await AppleID.auth.signIn();