@polargold/pg-frontend-vue
    Preparing search index...

    Interface UseCheckTokenValidityOptions

    interface UseCheckTokenValidityOptions {
        intervalMs?: number;
        isTokenValid: () => boolean;
        onInvalid: () => void | Promise<void>;
    }
    Index
    intervalMs?: number

    How often to check, in milliseconds. Defaults to 60000 (1 minute), matching the source copies.

    isTokenValid: () => boolean

    Returns whether the access token is currently valid. Replaces a direct useAccessTokenStore() read.

    onInvalid: () => void | Promise<void>

    Called on an interval when the token is found invalid - typically a sign-out. Replaces a direct useOpenIdAuthenticationStore().logout() call.