Skip to content

Commit 692e937

Browse files
committed
cleanup tests
1 parent 7ffd098 commit 692e937

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

packages/template-retail-react-app/app/utils/jwt-utils.test.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,6 @@ import {createRemoteJWKSet, validateSlasCallbackToken} from './jwt-utils'
33
import {getAppOrigin} from '@salesforce/pwa-kit-react-sdk/utils/url'
44
import {getConfig} from '@salesforce/pwa-kit-runtime/utils/ssr-config'
55

6-
const AUTH_ERROR_NAME = 'AuthError'
7-
8-
const issueTimestamp = Math.round(Date.now() / 1000) - 60
9-
const JWT_SAMPLE_PAYLOAD = {
10-
aut: 'GUID',
11-
scp:
12-
// eslint-disable-next-line
13-
'sfcc.shopper-myaccount.baskets sfcc.shopper-myaccount.addresses sfcc.ts_int_on_behalf_of, sfcc.shopper-myaccount.rw openid sfcc.shopper-customers.login sfcc.shopper-customers.register sfcc.shopper-myaccount.addresses.rw offline offline_access sfcc.ts_ext_on_behalf_of email sfcc.shopper-categories sfcc.shopper-myaccount sfcc.pwdless_login',
14-
sub:
15-
'cc-slas::bcgl_stg::scid:726bde86-7b99-415d-98ec-9290bad18904::usid:b92318ea-8b0b-40e1-9ad1-2b673b61bf03',
16-
ctx: 'slas',
17-
iss: 'slas/dev/bcgl_stg',
18-
ist: 1,
19-
aud: 'commercecloud/dev/bcgl_stg',
20-
nbf: issueTimestamp,
21-
sty: 'User',
22-
isb:
23-
'uido:ecom::upn:mikew::uidn:Mike Wazowski::gcid:abwHIWkXc2xucRmegUwGYYkesV::rcid:bcTMaLNWamdrJu03XHk51s8kcO::chid:TestChid',
24-
exp: issueTimestamp + 60 * 30,
25-
iat: issueTimestamp,
26-
jti: 'C2C8694720750-1008298052332081994449379'
27-
}
28-
296
const MOCK_JWKS = {
307
"keys": [
318
{

0 commit comments

Comments
 (0)