@valkey/valkey-glide
    Preparing search index...

    Type Alias ServerCredentials

    ServerCredentials:
        | { password: string; username?: string }
        | { iamConfig: IamAuthConfig; username: string }

    Represents the credentials for connecting to a server.

    Type Declaration

    • { password: string; username?: string }
      • password: string

        The password that will be used for authenticating connections to the Valkey servers. (mutually exclusive with iamConfig).

      • Optionalusername?: string

        The username that will be used for authenticating connections to the Valkey servers. If not supplied, "default" will be used.

    • { iamConfig: IamAuthConfig; username: string }
      • iamConfig: IamAuthConfig

        IAM config (mutually exclusive with password). The client will automatically generate and refresh the authentication token based on the provided configuration.

      • username: string

        Username is REQUIRED for IAM (Valkey AUTH ).