Skip to content

Commit f59d7df

Browse files
committed
Remove unused imports & constants
1 parent d0f1762 commit f59d7df

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

packages/template-retail-react-app/app/commerce-api/constants.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ export const SERVER_AFFINITY_HEADER_KEY = 'sfdc_dwsid'
4848
export const DEFAULT_SLAS_REFRESH_TOKEN_REGISTERED_TTL = 90 * 24 * 60 * 60
4949
export const DEFAULT_SLAS_REFRESH_TOKEN_GUEST_TTL = 30 * 24 * 60 * 60
5050

51-
export const SLAS_REFRESH_TOKEN_COOKIE_TTL_OVERRIDE_MSG =
52-
'You are attempting to use an invalid refresh token TTL value.'
53-
5451
/**
5552
* A map of the data that this auth module stores. This maps the name of the property to
5653
* the storage type and the key when stored in that storage. You can also pass in a "callback"

packages/template-retail-react-app/app/commerce-api/utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
import jwtDecode from 'jwt-decode'
88
import {getAppOrigin} from 'pwa-kit-react-sdk/utils/url'
99
import {HTTPError} from 'pwa-kit-react-sdk/ssr/universal/errors'
10-
import {refreshTokenGuestStorageKey, refreshTokenRegisteredStorageKey} from './constants'
1110
import fetch from 'cross-fetch'
1211
import Cookies from 'js-cookie'
13-
import {SLAS_REFRESH_TOKEN_COOKIE_TTL_OVERRIDE_MSG} from './constants'
1412

1513
/**
1614
* Compares the token age against the issued and expiry times. If the token's age is

0 commit comments

Comments
 (0)