UNPKG

matssocket

Version:
43 lines 1.72 kB
/** * Sent by the MatsSocket, via the {@link MatsSocket#setAuthorizationExpiredCallback}, when it requires new or * revalidated authentication by the client. * * @param {AuthorizationRequiredEvent} type - {@link AuthorizationRequiredEvent#type} * @param {number} currentExpirationTimestamp - {@link AuthorizationRequiredEvent#currentExpirationTimestamp} * @class */ export function AuthorizationRequiredEvent(type: AuthorizationRequiredEvent, currentExpirationTimestamp: number): void; export class AuthorizationRequiredEvent { /** * Sent by the MatsSocket, via the {@link MatsSocket#setAuthorizationExpiredCallback}, when it requires new or * revalidated authentication by the client. * * @param {AuthorizationRequiredEvent} type - {@link AuthorizationRequiredEvent#type} * @param {number} currentExpirationTimestamp - {@link AuthorizationRequiredEvent#currentExpirationTimestamp} * @class */ constructor(type: AuthorizationRequiredEvent, currentExpirationTimestamp: number); /** * Type of the event, one of {@link AuthorizationRequiredEvent}. * * @type {AuthorizationRequiredEvent} */ type: AuthorizationRequiredEvent; /** * Millis-from-epoch when the current Authorization expires - note that this might well still be in the future, * but the "slack" left before expiration is used up. * * @type {number} */ currentExpirationTimestamp: number; } /** * * */ export type AuthorizationRequiredEventType = string; export namespace AuthorizationRequiredEventType { let NOT_PRESENT: string; let EXPIRED: string; let REAUTHENTICATE: string; } //# sourceMappingURL=AuthorizationRequiredEvent.d.ts.map