mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* feat(cli): use dedicated HyperFrames OAuth clients * docs(cli): shorten credential store contract comment * fix(cli): respect Windows modes in OAuth media test * fix(cli): keep media workflows on HyperFrames OAuth * test(cli): scope billing status assertions to wallet rows * test(cli): align telemetry fixtures and CI auth inputs
22 lines
633 B
TypeScript
22 lines
633 B
TypeScript
/**
|
|
* HyperFrames credentials are isolated from the HeyGen CLI and between environments.
|
|
*/
|
|
|
|
import { homedir } from "node:os";
|
|
import { join } from "node:path";
|
|
import { oauthEnvironment } from "./config.js";
|
|
|
|
/**
|
|
* Filename for the HyperFrames credential store (JSON, no extension).
|
|
*/
|
|
export const CREDENTIAL_FILENAME = "credentials";
|
|
|
|
export function configDir(): string {
|
|
const root = process.env["HYPERFRAMES_CONFIG_DIR"] || join(homedir(), ".hyperframes");
|
|
return oauthEnvironment() === "dev" ? join(root, "dev") : root;
|
|
}
|
|
|
|
export function credentialPath(): string {
|
|
return join(configDir(), CREDENTIAL_FILENAME);
|
|
}
|