IFClite TypeScript API
    Preparing search index...

    Interface SourceAuth

    Implemented by providers declaring auth: 'interactive'.

    restore runs at registration and must be silent and non-blocking: no popups, no navigation. signIn may open a popup and must therefore only be called from a user gesture — the host guarantees this.

    interface SourceAuth {
        cancelSignIn?(): void;
        getIdentity(ctx: PluginContext): Promise<SourceIdentity | null>;
        restore(ctx: PluginContext): Promise<SourceIdentity | null>;
        signIn(ctx: PluginContext): Promise<SourceIdentity>;
        signOut(ctx: PluginContext): Promise<void>;
    }
    Index
    • Explicitly cancel an interactive attempt, including a COOP-separated popup.

      Returns void