Auth0 React has a useful component and I wonder if it's possible to use something similar when integrating Web3Auth and Auth0.
Thanks,
Roni
Originally posted by: RoniFinTech
Check the discussion at: https://github.com/orgs/Web3Auth/discussions/901
Auth0 React has a useful component and I wonder if it's possible to use something similar when integrating Web3Auth and Auth0.
Thanks,
Roni
Hey @RoniFinTech
Does @auth0/auth0-react
return JWT(id_token
) upon successful authentication?
If yes, then you can use it with Web3Auth by creating a custom verifier and passing the JWT to web3auth:
await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, {
loginProvider: “jwt”,
extraLoginOptions: {
id_token: idToken, // returned by Auth0 from @auth0/auth0-react
verifierIdField: “sub”, // same as your JWT Verifier ID
},
});