I am trying to integrate the start of session with apple, but I have not been able to since in the docucmentacion has two different ways one with typeOfLogin of JWT that does not works and this that I share with you as seseo that is directly with typeOfLogin apple, this works to the point that lets me enter apple start session and gives me the following error:
Looking at the screenshot provided, looks like you have configured an aggregate verifier and trying to do apple login. And code snippet provided is not correct.
Please follow this documentation on implementing the apple verifier and login with apple.
const authAdapter = new AuthAdapter({
adapterSettings: {
uxMode: "redirect",
loginConfig: {
jwt: {
verifier: "w3a-auth0-demo", // Pass the Verifier name here
typeOfLogin: "jwt", // Pass on the login provider of the verifier you've created
clientId: "hUVVf4SEsZT7syOiL0gLU9hFEtm2gQ6O", // Pass on the Auth0 `Client ID` here
},
},
},
});
// Login with Apple
await web3AuthNoModalInstance.connectTo(WALLET_ADAPTERS.AUTH, {
loginProvider: "jwt",
extraLoginOptions: {
ddomain: "https://web3auth.au.auth0.com", // Pass on the Auth0 `Domain` here
verifierIdField: "sub", // Pass on the field name of the `sub` field in the JWT
connection: "apple", // Use this to skip Auth0 Modal for Apple login
},
});
I already implemented that way but I have two errors in the connectTo part I think there is an error because in the code you shared with me you have the prop ddomain and if I put it with that I get the following error
jwt: {
verifier: "win_apple_verify", // Pass the Verifier name here. eg. aggregate-sapphire
verifierSubIdentifier: "app-google-verify", // Pass the Sub-Verifier here. eg w3a-google
typeOfLogin: "jwt", // Pass on the login provider of the verifier you've created
clientId: "a7x1ToHYvdsP0QBozH6bXUKnXAyaatuK", // Pass on the Auth0 `Client ID` here
},
const web3authProvider = await web3auth.connectTo(WALLET_ADAPTERS.AUTH, {
loginProvider: "jwt",
extraLoginOptions: {
domain: "https://wininvestments.us.auth0.com", // Pass on the Auth0 `Domain` here
verifierIdField: "email", // Pass on the field name of the `sub` field in the JWT
connection: "apple", // Use this to skip Auth0 Modal for Apple login
},
});
Hey @esteban
It says there isn’t a verifier with this name for your account.
And from this screenshot, it shows your verifier name is app-test-verify
Update this code to
jwt: {
verifier: "app-test-verify", // Pass the Verifier name here. eg. aggregate-sapphire
verifierSubIdentifier: "win_apple_verify", // Pass the Sub-Verifier here. eg w3a-google
typeOfLogin: "jwt", // Pass on the login provider of the verifier you've created
clientId: "a7x1ToHYvdsP0QBozH6bXUKnXAyaatuK", // Pass on the Auth0 `Client ID` here
},