# Automatically login

**URL:** <https://community.auth0.com/t/automatically-login/106476>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [May 9, 2023, 3:30am UTC](https://community.auth0.com/t/automatically-login/106476 "2023-05-09T03:30:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ianc](https://community.auth0.com/u/ianc)\
**Post date:** [May 9, 2023, 3:30am UTC](https://community.auth0.com/t/automatically-login/106476/1 "2023-05-09T03:30:04Z")

</div>

I am using blazor server. It is working ok but need to login each time. It does however advise that I am not logged in each time. When i hit login it must be getting the details from the cookie as it does not go to the auth0 login page.  
My question is, when it has details in the cookie, how can i get it to login automatically without making me select the login key first? Within auth0 setting, “Persistent Session” is highlighted so it would seem it should persist. Any ideas please?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 10, 2023, 11:47am UTC](https://community.auth0.com/t/automatically-login/106476/2 "2023-05-10T11:47:37Z")

</div>

Hey there!

I’m not a Blazor expert but maybe you will find some of our content on Blazor helpful:

> [@Securing Blazor WebAssembly Apps](https://community.auth0.com/t/securing-blazor-webassembly-apps/46661/191):
>
> Hi @WaywardVentures, Welcome to the Auth0 Community and thank you for sharing your experience. Just to clarify, the tutorial tells you to use your Auth0 domain in appsettings.json. A domain is NOT a URL, so it shouldn’t have https:// in it slightly_smiling_face For more info, see [this article](https://auth0.com/blog/url-uri-urn-differences/#Anatomy-of-a-URL).

> [@What is Blazor? A Tutorial on Building Web Apps with Authentication](https://community.auth0.com/t/what-is-blazor-a-tutorial-on-building-web-apps-with-authentication/33611/159):
>
> This was fairly straightforward and I got it redirecting to my Blazor page endpoint /auth0, but now I am getting an odd OpenIdConnectAuthenticationHandler exception. It reads: An unhandled exception occurred while processing the request. Exception: OpenIdConnectAuthenticationHandler: message.State is null or empty. Unknown location Exception: An error was encountered while handling the remote login. Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler\<TOptions\>.HandleRequestAsync() …

[https://community.auth0.com/t/role-based-access-control-in-blazor-applications/104402/3](https://community.auth0.com/t/role-based-access-control-in-blazor-applications/104402/3)

---

<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:** [May 24, 2023, 11:48am UTC](https://community.auth0.com/t/automatically-login/106476/3 "2023-05-24T11:48:19Z")

</div>

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