Iāve integrated Moralis sign-up/log-in/log-out/update features into my web3 site. All of that is working great.
Too great. When I close the web3 page (my working yarn start -> localhost:3000) and then open it againā¦Iāmā¦still signed in.
Thatās greatā¦if I were building a social media site. But Iām not. Iām building a bank.
How do I tell Moralis to set its session cookie to auto-expire at the end of the session?
Iād ask how to do it in JavaScript/React, but the user could just kill the browser process and thatās the end of JavaScript before it couldā¦umā¦āreactā.
Bonus question: how do I set up an inactivity timeout on the session login cookie? Iād like to poke the user with a warning and failing that: lock it up.
Rather boring bankish security stuff. But necessary. And Iām at a bit of a loss as to how to make it happen.
Thoughts?