mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 15:50:20 +00:00
11 lines
358 B
TypeScript
11 lines
358 B
TypeScript
import { DEFAULT_SECRET_FILE_MAX_BYTES, readSecretFileSync } from "../infra/secret-file.js";
|
|
|
|
export const MAX_SECRET_FILE_BYTES = DEFAULT_SECRET_FILE_MAX_BYTES;
|
|
|
|
export function readSecretFromFile(filePath: string, label: string): string {
|
|
return readSecretFileSync(filePath, label, {
|
|
maxBytes: MAX_SECRET_FILE_BYTES,
|
|
rejectSymlink: true,
|
|
});
|
|
}
|