alwaysai
Version:
The alwaysAI command-line interface (CLI)
15 lines (13 loc) • 409 B
text/typescript
import { AuthenticationClient } from '@alwaysai/cloud-api';
import { CredentialsJsonFile } from './credentials-json-file';
import { getSystemId } from './system-id';
export function CliAuthenticationClient(
options: Partial<{ readonly: boolean }> = {}
) {
const { readonly } = options;
return AuthenticationClient({
systemId: getSystemId(),
storage: CredentialsJsonFile(),
readonly
});
}