@eoussama/firemitt
    Preparing search index...

    Class FiremittHelper

    Helper class for handling authentication processes using Firemitt.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Initiates authentication using Firemitt options.

      Depending on the mode field in options, this either opens a popup window (default) or embeds Fireguard inside an iframe.

      Parameters

      • options: {
            config?: {
                firebase?: {
                    apiKey: string;
                    appId: string;
                    authDomain: string;
                    measurementId: string;
                    messagingSenderId: string;
                    projectId: string;
                    storageBucket: string;
                };
                logo?: string;
                name?: string;
                provider?: string;
                theme?: {
                    background?: string;
                    primary?: string;
                    secondary?: string;
                    text?: string;
                };
            };
            dim?: { height?: number; width?: number };
            iframe?:
                | { container?: undefined; element: HTMLIFrameElement }
                | { container: HTMLElement; element?: undefined };
            mode?: "popup" | "iframe";
            pos?: { x?: number; y?: number };
            url: string;
        }

        The options required to configure and initiate the Firemitt authentication process.

      Returns Promise<string>

      A promise that resolves with the authentication token on success, or rejects with an error on failure.