Skip to content

Commit 9f6f7aa

Browse files
Added Spring lib
1 parent ca171b8 commit 9f6f7aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/client/index.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@ import {
1313
getFreshToken,
1414
} from '@topcoder-platform/tc-auth-lib';
1515
import { actions, logger, errors } from 'topcoder-react-lib';
16-
import { client, redux } from 'topcoder-react-utils';
16+
import { client, redux, config } from 'topcoder-react-utils';
17+
import { sprig } from '@sprig-technologies/sprig-browser';
1718

1819
import './styles.scss';
1920

21+
const Sprig = sprig.configure({
22+
environmentId: config.SPRIG_ENVIRONMENT_ID,
23+
});
24+
2025
const { setErrorsStore } = errors;
2126

2227
/**
@@ -55,6 +60,7 @@ function identify(profile, roles, userIdHash) {
5560
integrations: { All: false, Chameleon: true },
5661
},
5762
);
63+
Sprig('setUserId', profile.handle);
5864
}
5965

6066
/**

0 commit comments

Comments
 (0)