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?
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.