2026-03-08 00:27:41 +00:00
|
|
|
import type { OpenClawConfig } from "../../config/config.js";
|
2026-03-11 01:37:20 +00:00
|
|
|
import { resolveGatewayDriftCheckCredentialsFromConfig } from "../../gateway/credentials.js";
|
2026-03-08 00:27:41 +00:00
|
|
|
|
|
|
|
|
export function resolveGatewayTokenForDriftCheck(params: {
|
|
|
|
|
cfg: OpenClawConfig;
|
|
|
|
|
env?: NodeJS.ProcessEnv;
|
|
|
|
|
}) {
|
2026-03-11 01:37:20 +00:00
|
|
|
void params.env;
|
|
|
|
|
return resolveGatewayDriftCheckCredentialsFromConfig({ cfg: params.cfg }).token;
|
2026-03-08 00:27:41 +00:00
|
|
|
}
|