/** Exists solely to enable anonymous objects { } to be created * without requiring declarations of properties that have default values. */ export interface IAuthSettings { secret: string; tokenHeaderParam?: string; tokenTimeToLiveInMinutes?: number; requireTokenExpiration?: boolean; } export declare function CreateAuthSettings(input: IAuthSettings): AuthSettings; export declare class AuthSettings { secret: string; /** Configuration options for the Authentication library. * NOTE: You can use JwtFactory.generateSecret() to create a new random compliant shared secret. */ constructor(secret: string); /** Enforces that all tokens to contain an expiration date (defaults to true). * This setting exists purely for testing during development, so that developers can set it to false * and not have to continually waste time acquiring new tokens. * WARNING!!! NEVER SET THIS TO false IN ANY ENVIRONMENT OTHER THAN DEVELOPMENT!!! */ requireTokenExpiration: boolean; /** Name of the http header containing the JWT (used on both inbound and outbound) */ tokenHeaderParam: string; /** Timespan used in setting expiration dates on tokens */ tokenTimeToLiveInMinutes: number; }