@constructorfleet/ultimate-govee
Version:
Library for interacting with Govee devices written in Typescript.
20 lines • 916 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GoveeAccountConfig = void 0;
const config_1 = require("@nestjs/config");
const utils_1 = require("../../utils");
const authUrl = 'https://app2.govee.com/account/rest/account/v1/login';
const communityAuthUrl = 'https://community-api.govee.com/os/v1/login';
const refreshTokenUrl = 'https://app2.govee.com/account/rest/v1/first/refresh-tokens';
const iotCertUrl = 'https://app2.govee.com/app/v1/account/iot/key';
const GoveeAccountConfigKey = 'Configuration.Govee.Account';
exports.GoveeAccountConfig = (0, config_1.registerAs)(GoveeAccountConfigKey, () => ({
authUrl,
communityAuthUrl,
iotCertUrl,
refreshTokenUrl,
saveAuthTo: process.env.SAVE_AUTH_FILE,
headers: utils_1.goveeHeaders,
authenticatedHeaders: utils_1.goveeAuthenticatedHeaders,
}));
//# sourceMappingURL=govee-account.configuration.js.map