Skip to content

Commit

Permalink
fix: add missing touchSession for exported function (#1461)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Oct 3, 2023
2 parents d2a4c75 + 670f8f5 commit d9c8bae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
HandleLogout,
HandleProfile,
SessionCache,
TouchSession,
UpdateSession,
WithApiAuthRequired,
WithPageAuthRequired,
Expand Down Expand Up @@ -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);
Expand Down
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 d9c8bae

Please sign in to comment.