[SOLVED] How to use moralis for wallet login using vanilla js

i am currently using moralis.authenticate() to enable users to connect their wallet, this allows me to get their ethAddress so i can display the assets from my collection that they own, however this currently needs the dapp/server which is closing down.

Is there a solution using vanilla js? it makes life a lot easier than having to use nextjs which ive seen on the auth api.

Any help is really appreciated. I started this web art project over 10 years ago.
thank you.

You can self host your server.

1 Like

i watched that video, it was in react and node js. my website is simple vanilla js and hosted on aws with mysql database. i just need a tutorial that shows me how i can host the moralis server and call the moralis.authenticate using vanilla js, as i currently am.

Help is appreicated.

i just need a tutorial that shows me how i can host the moralis server

It is up to you which provider you want to use for hosting your server. You can watch this video for Heroku. But don’t worry about hosting it yet, get it working locally first.

call the moralis.authenticate

There is a Vanilla JS example here in that tutorial for how to authenticate with your self-hosted server. You can go through that tutorial.

1 Like