Skip to content

Commit

Permalink
fix: add missing touchSession for exported function
Browse files Browse the repository at this point in the history
  • Loading branch information
benevbright committed Sep 27, 2023
1 parent 3557b25 commit 9db98c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
HandleLogout,
HandleProfile,
SessionCache,
TouchSession,
UpdateSession,
WithApiAuthRequired,
WithPageAuthRequired,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9db98c7

Please sign in to comment.