UNPKG

@tmaguire/azure-ad-verify-token

Version:

Verify JWT issued by the Microsoft Identity Platform (including Azure AD B2C).

33 lines 646 B
/** * Default value for `cacheLifetime`. */ export const DEFAULT_CACHE_LIFETIME = 60 * 60 * 1000; // one hour /** * Current configuration. */ let config = { cacheLifetime: DEFAULT_CACHE_LIFETIME, }; /** * Set config properties. * * @param config Object of properties to set. */ export function setConfig(overrides) { return Object.assign(config, overrides); } /** * Get current configuration. */ export function getConfig() { return config; } /** * Reset configuration to defaults. */ export function resetConfig() { config = { cacheLifetime: DEFAULT_CACHE_LIFETIME, }; } //# sourceMappingURL=config.js.map