Skip to content

Extension/Manifest v3 Browser detection and use of window #3923

Open
@sickpuppysoftware

Description

@sickpuppysoftware

Core Library

MSAL.js v2 (@azure/msal-browser)

Wrapper Library

Not Applicable

Description

msal-browser doesn't work as it should when called from a manifest v3 service worker.
I've adapted the extension sample in an attempt to get it working under manifest v3. However I have the following issues depending on where I try to use the library.
Background service worker - The library's browser detection fails as there is no window object in a service worker.
Content script - No access to chrome.identity should library calls fail. I'm also loathed to inject the whole library into every page loaded.

Is there ay way to get the library working with manifest v3?

Source

External (Customer)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions