How to maintain the user authenticated in a SPA with custom login?

Hello, any updates on the latter scenario? Thanks