Zamok Kiosk API
    Preparing search index...
    sessionRenew: (
        source: string,
    ) => { payload: { date: number; source: string }; type: "SESSION_RENEW" } = ...

    Dispatch to renew the session

    Type Declaration

      • (
            source: string,
        ): { payload: { date: number; source: string }; type: "SESSION_RENEW" }
      • Parameters

        • source: string

        Returns { payload: { date: number; source: string }; type: "SESSION_RENEW" }

    Payload is an object containing the current date as a Unix timestamp, and an optional source string. The source string can be used to identify what caused the session to renew (i.e. user activity, keep-alive ping, etc).

    {
    type: 'SESSION_RENEW',
    payload: {
    date: 1656427200000, // Date.now()
    source: 'user-activity' // optional
    }
    }