# Reload Angular page causes user to login again

**URL:** <https://community.auth0.com/t/reload-angular-page-causes-user-to-login-again/55733>\
**Category:** Get Help\
**Tags:** token, access-token, angular, login, auth0\
**Created:** [January 5, 2021, 5:42pm UTC](https://community.auth0.com/t/reload-angular-page-causes-user-to-login-again/55733 "2021-01-05T17:42:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom.schreck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tom.schreck/32/26574_2.png) [@tom.schreck](https://community.auth0.com/u/tom.schreck)\
**Post date:** [January 5, 2021, 5:42pm UTC](https://community.auth0.com/t/reload-angular-page-causes-user-to-login-again/55733/1 "2021-01-05T17:42:38Z")

</div>

I’m using `@auth0/auth0-angular v ^1.3.1` to implement Auth0 inside my Angular SPA. I’m trying to make the user’s session sticky so if the app reloads the user is not taken to login. I found a similar question below:

> [@Login lost every time browser is reloaded](https://community.auth0.com/t/login-lost-every-time-browser-is-reloaded/27410):
>
> I’ve managed to implement Auth0 on an Angular 8 app, however, every time I reload the browser login is lost and the user has to authenticate again (I read somewhere that this is expected behavior because all login info is stored as variables instead than on local storage, is it true?) and if so, how can I change this behavior to persist login data somehow?

I downloaded my sample app and ran it locally. It too forces the user to login again when the sample app reloads in browser.

Is it possible to make user’s authentication sticky using `@auth0/auth0-angular v ^1.3.1`?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [January 5, 2021, 8:05pm UTC](https://community.auth0.com/t/reload-angular-page-causes-user-to-login-again/55733/3 "2021-01-05T20:05:25Z")

</div>

Hi @tom.schreck,

Welcome to the Community!

Does this happen when you sign up using a database connection (provide an email and password on the login form)? Or does it only happen when you log in with Google (or another social connection)?

If it’s only with social connections, then it could be because the app is using Auth0 developer keys instead of your own Google developer OAuth credentials.

If that is the case, here are the docs for configuring a Google social connection: [https://auth0.com/docs/connections/social/google](https://auth0.com/docs/connections/social/google)

---

<div class="post-metadata">

**Author:** ![tom.schreck](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tom.schreck/32/26574_2.png) [@tom.schreck](https://community.auth0.com/u/tom.schreck)\
**Post date:** [January 5, 2021, 10:38pm UTC](https://community.auth0.com/t/reload-angular-page-causes-user-to-login-again/55733/4 "2021-01-05T22:38:04Z")

</div>

Hi @stephanie.chamblee. It’s happening with social connection (Google). I does **not** happen with passwordless connection.

Your link solved my problem. I had not setup Google. It was still using Auth0’s developer keys. Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 20, 2021, 10:38pm UTC](https://community.auth0.com/t/reload-angular-page-causes-user-to-login-again/55733/5 "2021-01-20T22:38:13Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
