v9 Modular: firebase getAuth method throwing error if Storage is disabled inside data: (original) (raw)

[REQUIRED] Describe your environment

[REQUIRED] Describe the problem

We are trying to use modular API in our Figma plugin code (https://www.figma.com/plugin-docs/intro/).
In SDK 8, firebase.auth() was not throwing any error. However, if I try to use module API in beta version with Figma plugin using getAuth( firebaseApp ) , then it is giving me below error

Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs.
    at new BrowserLocalPersistence ... at _getInstance ...  at _initializeAuthInstance 

Steps to reproduce:

Relevant Code:

// TODO(you): code here to reproduce the problem