Skip to content
AnswerWell geo Documentation

Research · 3 min read · Answerwell

Extension loginState Permission, Manifest V3, and Legacy API

How the loginState permission appears in Chrome extension manifests and where MV3 and MV2 API references document it.

This page summarises the Chrome Extensions documentation that names the loginState permission and hosts the related API reference. The cluster material centers on that permission entry on both the current Extensions API reference and the older Manifest V2 reference; unrelated changelog pages and other providers were omitted.

Extensions sometimes need to know whether the browser profile reflects a signed-in account versus a guest or unmanaged profile before enabling features, showing account-specific UI, or syncing data. Platform docs group that concern under loginState: a declared manifest permission and a dedicated reference area linked below.

loginState permission: what the reference pages list

Section titled “loginState permission: what the reference pages list”

The documented permission identifier is exactly loginState. On the Manifest V3 API reference, it appears under Permissions with that single token:

loginState

— Google, loginState (Manifest V3 API reference)

The Manifest V2 reference uses the same permission name under Permissions:

loginState

— Google, loginState (Manifest V2 reference)

Common conclusion: whether you target Manifest V3 or maintain a legacy Manifest V2 extension, the manifest permission string to request is loginState; the authoritative wording and any methods, types, and availability notes live on the matching reference page for your manifest version—not in a generic permissions list alone.

You need loginState in the manifest when your extension calls the login-state API that Chrome gates behind that permission. If your feature only uses ordinary extension APIs and does not consult profile sign-in state, you should not add the permission: unused permissions trigger review scrutiny and widen your attack surface.

Declare it like any other Chrome Extensions permission: add loginState to the permissions array (or follow the pattern your manifest version’s reference specifies on the pages above).

Manifest V3 vs Manifest V2: which loginState doc to use

Section titled “Manifest V3 vs Manifest V2: which loginState doc to use”
Concern Use this reference
New extensions (manifest_version 3) loginState (Manifest V3 API reference)
Legacy MV2 extensions still on older manifests loginState (Manifest V2 reference)

Manifest V3 is the supported path for new work on the Chrome Extensions platform. The MV2 page remains the correct entry point if your shipping artifact still uses Manifest V2 rules and you have not migrated.

Open the link that matches your manifest_version. The Permissions section confirms loginState; the same page should describe the API surface (callable functions, return types, and chromeOS or platform limits if any). Treat that page as the source of truth for behavior—this wiki page only anchors the shared permission name and the correct doc URL for each manifest generation.

  • Copying only the permission name from a tutorial without opening the Manifest V3 reference or MV2 reference for availability and calling context.
  • Requesting loginState without calling the API, which adds permission warnings for users and store reviewers without benefit.
  • Linking to the wrong manifest generation, then wondering why examples or types do not match your manifest.json.
  • Assuming login state equals your web app’s session—browser profile sign-in and site cookies are separate layers; extensions must use the documented login-state API rather than inferring from arbitrary sites.
  1. Open your extension’s manifest.json and confirm loginState appears only if your code uses the login-state API described on the Manifest V3 or Manifest V2 reference for your target version.
  2. Load the unpacked extension in Chrome, open the extension’s details, and verify the permission label matches what you expect for loginState.
  3. Cross-check every login-state call in your code against the matching reference page so parameters and async patterns match the documented API.
  4. Before publishing, re-read the Chrome Extensions overview and your chosen loginState reference for any platform notes tied to profile types or release channel.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match the current Chrome documentation, email yimasynthetic@gmail.com with the page URL and the exact statement you believe is wrong or unclear.