Is there an example that shows using Firebase and Metamask as options to log in? #1144
Replies: 4 comments 3 replies
-
Hey @obversepebble Do you mean two options to log in? One is Firebase, like https://main.d2259cfl2oapbx.amplifyapp.com, and should this also have the option to log in with MetaMask or Phantom? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm looking for similar solution. I'm able to login with Now, I want to login with Metamask wallet and create user on firebase and web3auth. Is there any way to integrate firebase with const login = async () => {
const loginRes = await signInWithGoogle(); // Need to use Metamask Login here
const idToken = await loginRes.user.getIdToken(true);
const web3authProvider = await web3auth.connectTo(
WALLET_ADAPTERS.OPENLOGIN, // Need to use METAMASK here
{
loginProvider: "jwt",
extraLoginOptions: {
id_token: idToken,
verifierIdField: "sub",
domain: "http://localhost:3000",
},
}
);
}; |
Beta Was this translation helpful? Give feedback.
-
Hello ! |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, If anyone know or has any reference please tell. |
Beta Was this translation helpful? Give feedback.
-
Hi, is there an example that shows using Firebase and Metamask as options to log in in the same application? Firebase provides non-wallet options to signing in (I see it in the Firebase example as expected), but if the user chooses to connect with Metamask or Walletconnect, I'd like to set the authenticated user in Firebase as well, e.g. Moralis does that here: https://docs.moralis.io/docs/web3-firebase-authentication, but I'd like to achieve the same without Moralis. Help is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions