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

Any update on this since June last year?