capacitor-firebase
capacitor-firebase copied to clipboard
feat(authentication): Add support for disableWarnings when using emulator with web
Is your feature request related to a problem? Please describe: Using the emulator for the web adds as banner to the bottom indicating it's an emulator environment which often covers up part of the layout making it hard to develop the layout.
![screen](https://user-images.githubusercontent.com/4167341/218586621-caee6552-a5b2-43dc-a19e-9ca3babbbabe.png)
Describe the solution you'd like:
I'd like the useEmulator
function to pass along the disableWarnings value in the options.
FirebaseAuthentication.useEmulator({
host: 'http://localhost',
port: 9099,
options: {
disableWarnings: true,
},
})
Describe alternatives you've considered: Using CSS to hide the div is a workaround for the time being.
.firebase-emulator-warning {
display: none !important;
}
Additional context: https://firebase.google.com/docs/reference/js/auth.emulatorconfig.md#emulatorconfigoptions