An interface that needs to be implemented by Client application. It provides definition for event handlers, which are invoked when jwt is about to expire or has expired.

interface JwtProvider {
    onExpire: (() => unknown);
    onExpireWarning: ((remainingTime: number) => unknown);
}

Properties

onExpire: (() => unknown)
onExpireWarning: ((remainingTime: number) => unknown)