From 9db98c71b2ce6c1907443111e89dc3d73ea67673 Mon Sep 17 00:00:00 2001 From: Bright Lee Date: Wed, 27 Sep 2023 23:06:22 +0200 Subject: [PATCH 1/2] fix: add missing touchSession for exported function --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 221ba3022..b174483ac 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,7 @@ import { HandleLogout, HandleProfile, SessionCache, + TouchSession, UpdateSession, WithApiAuthRequired, WithPageAuthRequired, @@ -61,6 +62,7 @@ const getSessionCache = () => getInstance().sessionCache; export const getSession: GetSession = (...args) => getInstance().getSession(...args); export const updateSession: UpdateSession = (...args) => getInstance().updateSession(...args); export const getAccessToken: GetAccessToken = (...args) => getInstance().getAccessToken(...args); +export const touchSession: TouchSession = (...args) => getInstance().touchSession(...args); export const withApiAuthRequired: WithApiAuthRequired = (...args) => (getInstance().withApiAuthRequired as any)(...args); export const withPageAuthRequired: WithPageAuthRequired = withPageAuthRequiredFactory(getLoginUrl(), getSessionCache); From 670f8f5bd1032fe052c8eb3172fe7bfe74fa4bbc Mon Sep 17 00:00:00 2001 From: Bright Lee Date: Mon, 2 Oct 2023 23:18:03 +0200 Subject: [PATCH 2/2] add to edge as well --- src/edge.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/edge.ts b/src/edge.ts index 02447535d..fe06e5bf9 100644 --- a/src/edge.ts +++ b/src/edge.ts @@ -9,6 +9,7 @@ import { HandleLogout, HandleProfile, SessionCache, + TouchSession, UpdateSession, WithApiAuthRequired, WithPageAuthRequired, @@ -65,6 +66,7 @@ const getSessionCache = () => getInstance().sessionCache; export const getSession: GetSession = (...args) => getInstance().getSession(...args); export const updateSession: UpdateSession = (...args) => getInstance().updateSession(...args); export const getAccessToken: GetAccessToken = (...args) => getInstance().getAccessToken(...args); +export const touchSession: TouchSession = (...args) => getInstance().touchSession(...args); export const withApiAuthRequired: WithApiAuthRequired = (...args) => (getInstance().withApiAuthRequired as any)(...args); export const withPageAuthRequired: WithPageAuthRequired = withPageAuthRequiredFactory(getLoginUrl(), getSessionCache);