vapor-chamber API reference - v1.3.0
    Preparing search index...

    Function authGuard

    • Auth guard plugin - blocks protected commands when not authenticated.

      Parameters

      • options: {
            isAuthenticated: () => boolean;
            protected: string[];
            onUnauthenticated?: (cmd: Command) => void;
        }

      Returns Plugin