chrome.loginState

Important:This API worksonly on ChromeOS.

Description

Permissions

Availability

Types

Methods

chrome.loginState.getProfileType(): Promise<ProfileType>

Gets the type of the profile the extension is in.

Returns

getSessionState()

chrome.loginState.getSessionState(): Promise<SessionState>

Gets the current session state.

Returns

Events

onSessionStateChanged

chrome.loginState.onSessionStateChanged.addListener(
  callback: function,
)

Dispatched when the session state changes.sessionState is the new session state.

Parameters

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-20 UTC.