From a604d911d2653ed94b9a01e67baa555026098584 Mon Sep 17 00:00:00 2001 From: Shepherd Date: Fri, 4 Oct 2024 08:00:22 -0400 Subject: [PATCH] Add jwtRequired remote param --- src/shared/helpers/ConfigHelper.ts | 4 ++++ src/shared/models/AppConfig.ts | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/shared/helpers/ConfigHelper.ts b/src/shared/helpers/ConfigHelper.ts index cda59b9fd..4e1ea6bce 100644 --- a/src/shared/helpers/ConfigHelper.ts +++ b/src/shared/helpers/ConfigHelper.ts @@ -171,6 +171,10 @@ export class ConfigHelper { serverConfig.features.web_on_focus_enabled, SERVER_CONFIG_DEFAULTS_SESSION.enableOnFocus, ), + jwtRequired: Utils.valueOrDefault( + serverConfig.config.jwt_required, + false, + ), }; } diff --git a/src/shared/models/AppConfig.ts b/src/shared/models/AppConfig.ts index a23d155c5..e9baad727 100755 --- a/src/shared/models/AppConfig.ts +++ b/src/shared/models/AppConfig.ts @@ -49,6 +49,12 @@ export interface AppConfig { sessionThreshold?: number; siteName: string; + + /** + * The OneSignal dashboard setting for identity verification. Indicates if Jwt + * is enabled for the app. + */ + jwtRequired?: boolean; } export enum ConfigIntegrationKind { @@ -270,6 +276,7 @@ export interface ServerAppConfig { http_use_onesignal_com?: boolean; safari_web_id?: string; subdomain: string | undefined; + jwt_required?: boolean; }; generated_at: number;