LoginDialog

Login dialog with Sign In and Create Account views.

Constructor

new LoginDialog()

Create a new LoginDialog instance.

Classes

LoginDialog

Methods

_build() → {HTMLElement}

Build and return the dialog overlay element.
Returns:
The overlay containing the modal.
Type: 
HTMLElement

close()

Hide and destroy the dialog.

open()

Show the dialog as a dismissable overlay.

openRequired()

Show the dialog as a blocking gate — no close button, no backdrop dismiss. Use this when a sign-in is required to access the app.

showConnectError(msg)

Show a server-side sign-in error and re-enable the form. Called when Firebase auth succeeded but the backend rejected the user. No-op if the dialog is not open.
Parameters:
NameTypeDescription
msgstringThe error message to display.