Auto Login with Angular SPA

Hi all,

I’m trying to learn how to create authentiaction for a Angular SPA.

I’ve completed the great tutorial at https://auth0.com/blog/complete-guide-to-angular-user-authentication/, and most of it worked very well out of the box.

But every time I refresh the page, I have to login again. I think it’s a very basic requirement not to have to login every single time, but the blog post says absolutely nothing about this topic. Even worse, when I tried to google the solution, I found problems concerning disabling auto login, but not a single tutorial about enabling it. So I think it must be my fault. Perhaps it is enabled by default and I simply did something wrong.

So can you give me a simple pointer what I have to do to keep the user signed in?

Regards

Marcus.

1 Like

2 posts were merged into an existing topic: The Complete Guide to Angular User Authentication with Auth0