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

    Class UniversalAuth

    Universal Auth (client id + client secret) — POST /api/v1/auth/universal-auth/login.

    Hierarchy (View Summary)

    Index
    clientId: string

    The client id.

    kind: "universal-auth"

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

    loginPath: "/api/v1/auth/universal-auth/login"

    Login path, e.g. /api/v1/auth/universal-auth/login.

    refreshable: true

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

    tokenKind: TokenKind = "identity"

    Principal kind of the tokens this method produces.

    • get accessToken(): AccessToken | null

      The current access token (null before the first login or after revoke).

      Returns AccessToken | null

    • get context(): AuthContext

      The bound client context (ConfigError before the method is passed to a client).

      Returns AuthContext

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

      Parameters

      • revoke: boolean = false

      Returns Promise<void>