Archived Content from Web3Auth Community
This topic was originally posted by githubdiscussions on 11/18/2022.
This content has been migrated from our previous community forum to preserve valuable discussions.
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
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:
import { WALLET_ADAPTERS, CHAIN_NAMESPACES } from ”@web3auth/base";
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
},
});
Originally posted by:
shahbaz17