Skip to content

In mobile browsers, it will automatically log out and redirect to the login page. #8194

@bamboo-kc

Description

@bamboo-kc

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

4.24.0

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

4.0.20

Public or Confidential Client?

Public

Description

When the user switches the mobile browser (iOS: Safari/Chrome; Android: Chrome;) to the background and then brings it back to the foreground after approximately 10 to 15 minutes, the current page will be the login page.

However, this scenario does not occur on the PC side.

Error Message

No response

MSAL Logs

No response

Network Trace (Preferrably Fiddler)

  • Sent
  • Pending

MSAL Configuration

{
  auth: {
    clientId: '',
    authority: '',
    redirectUri: '',
    postLogoutRedirectUri: '',
  },
  cache: {
    cacheLocation: BrowserCacheLocation.LocalStorage,
    storeAuthStateInCookie: false,
  },
}

Relevant Code Snippets

-

Reproduction Steps

Expected Behavior

Identity Provider

Entra ID (formerly Azure AD) / MSA

Browsers Affected (Select all that apply)

Safari, Chrome

Regression

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Awaiting response from the MSAL.js teambug-unconfirmedA reported bug that needs to be investigated and confirmedmsal-angularRelated to @azure/msal-angular packagemsal-browserRelated to msal-browser packagepublic-clientIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions