[SOLVED] Get moralis provider?

Hey guys, so, i was trying to get the provider throught metamask, using like

let provider = await detectEthereumProvider();

detectEthereumProvider is a package metamask provides, but here is the point…
Moralis keep the user signed in, so after some time, I can’t get the provider anymore.

I mean, this only works when I have recently authenticated, if its been like 2 days that I authenticated (and moralis kept the user signed in…) i wont be able to get the provider…

So I was wondering if there is any way I can pick the provider throught Moralis or something like this? I dont know… How could I solve it

I have already tried using Moralis.provider but it does not work!

It actually worked now, lol.

1 Like