@grow-codes/infisical - v0.1.2
    Preparing search index...

    Interface InfisicalAuth

    An auth method. Pass one as auth in InfisicalConfigOptions; the client binds it and asks it for a token before every authenticated call.

    interface InfisicalAuth {
        kind: string;
        refreshable: boolean;
        tokenKind: TokenKind;
        close(revoke?: boolean): Promise<void>;
        invalidate(): void;
        knownSecrets(): string[];
        token(options?: AuthCallOptions): Promise<Secret>;
    }

    Implemented by

    Index
    kind: string

    Method name (token, universal-auth, kubernetes-auth, aws-auth).

    refreshable: boolean

    Whether a rejected token can be replaced by logging in again.

    tokenKind: TokenKind

    Principal kind of the tokens this method produces.

    • Releases the method; revokes a login token when revoke is true.

      Parameters

      • Optionalrevoke: boolean

      Returns Promise<void>

    • Forgets the current token (the next call logs in again).

      Returns void

    • Credential values to redact from errors.

      Returns string[]