Skip to content

Instantly share code, notes, and snippets.

@YonathanMeguira
Last active December 24, 2020 10:03
Show Gist options
  • Save YonathanMeguira/8a926829de16ca1518d5171e9fd461c6 to your computer and use it in GitHub Desktop.
Save YonathanMeguira/8a926829de16ca1518d5171e9fd461c6 to your computer and use it in GitHub Desktop.
export class CachedAccount {
id: string;
config: string;
enableWhiteLabelUi: boolean;
isSsoEnabled: boolean;
ssoLogoutRedirectURL: string;
constructor({id, config, enableWhiteLabelUi, isSsoEnabled, ssoLogoutRedirectURL}: Account) {
this.id = id;
this.enableWhiteLabelUi = enableWhiteLabelUi;
this.isSsoEnabled = isSsoEnabled;
this.ssoLogoutRedirectURL = ssoLogoutRedirectURL;
}
}
const cachedAccount = new CachedAccount(account);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment