Is it possible to run moralis login using chrome extension?

I am thinking to create a chrome extension that requires logging in to a crypto wallet.

Is it possible?

I think that it should be possible, but I don’t know on what problems you will get down the line

The problem which I am currently facing is

“Uncaught ReferenceError: Moralis is not defined”

As external scripts are allowed in the chrome extension.

Just searched on google and found this:
don’t know if it helps

It seems to load the scripts the from the web paths. but for some reason it is showing me the same error.

I may have to explore other ways

hmm it could work with walletconnect (i doubt it will work with metamask as its plugin calling another plugin which i think doesnt work in chrome)

we havent tested this so you are first explorer

1 Like

Hi all,
I managed to call metamask from an other chrome extension using this:
However, when I integrate Moralis, I got the error
“Non ethereum enabled browser”.
I think it’s because Im not running Moralis through a live server, problem is: client side, chrome extensions are not running through live server…
So my question is: do you know how to directly pass the injected web3 provider object, or account, to Moralis in order to login and get Moralis user object, instead of calling Moralis.authenticate() ? I need moralis user id and moralis username associated with the account in order for my app to work. Thanks a lot !

you may be able to do a custom function for the provider:

1 Like

Did you find a working solution for this?

Can you provide some more hints? I guess you are referring to:

const web3Provider = await Moralis.enableWeb3();

How can we login with Metamask using the web3Provider directly instead of using Moralis.authenticate()?