How to keep user logged in static web app

Wozdog 1 Reputation point
2021-01-21T00:48:49.17+00:00

I'm using aad to authenticate users accessing my app published as an Azure Static Web App and it works ok. However, each time users navigate to the app or start a new session, they have to re-enter their userid/email address. Is there any way of keeping the user logged in between sessions? Seems like a classic use case to be able to keep a user logged in to an app.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
904 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,886 Reputation points
    2021-01-25T23:27:50.277+00:00

    Hi @Wozdog ,

    Thanks for your patience. I was able to confirm with the engineering team that we currently don't have a way to adjust the duration of the cookie to keep your users logged in between sessions. However, if you would like to request this as a feature please share your feedback here: https://github.com/Azure/static-web-apps/issues, and someone from the engineering team will get back to you.

    Thanks,
    Grace


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.