Skip to content

Commit

Permalink
Add jwtRequired remote param
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherd-l committed Oct 4, 2024
1 parent aa3c45b commit a604d91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shared/helpers/ConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
};
}

Expand Down
7 changes: 7 additions & 0 deletions src/shared/models/AppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a604d91

Please sign in to comment.