Is there an example that shows how to integrated Firebase authentication and Metamask/Walletconnect authentication in the same application? What I’d like to achieve is the following:
- If the user chooses any login type that isn’t Metamask/Walletconnect, then Firebase authentication provider manages the login such that in Firebase, I’m able to configure the Web2 logins that I’d like to support. For instance, Web3Auth has an example showing how they handle it
https://web3auth.io/docs/guides/firebase
. I’m wondering if Moralis is able to do this without needing Web3Auth in the mix. If not, I can use Web3Auth to manage this flow, but in that case, I’m not sure how to handle the next use case: - If the user chooses a web3 wallet login type, then it’d behave as shown in
https://docs.moralis.io/docs/web3-firebase-authentication
.
If I have to use Web3Auth to achieve the above, then I’m looking at the example here, and I am wondering how would I integrate the setUser()
logic in this example with the example using NextJS/NextAuth based setting of the user in session shown here.
Help is much appreciated. Thank you in advance!