Skip to content

Commit 4e2f691

Browse files
committed
Update axios request params
1 parent 8599f55 commit 4e2f691

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

service/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type ReadTokenReturnProps = Pick<
3232
>;
3333

3434
const project = {
35-
name: "React Native SDK",
35+
SDK: "React Native SDK",
3636
version: PackageJson.version,
3737
};
3838

@@ -43,8 +43,9 @@ export const initiate = async (props: InitiateProps) => {
4343
const response = await axios.get<ConfigsProps>(`/api/v1/tenant/config/`, {
4444
params: {
4545
plugin: true, // This is for backend compatibility
46-
project: project.name, // This is for backend compatibility & analytics
46+
SDK: project.SDK, // This is for backend compatibility & analytics
4747
version: project.version, // This is for backend compatibility & analytics
48+
name: projectName, // This is for backend compatibility & analytics
4849
},
4950
headers: {
5051
apiKey,

0 commit comments

Comments
 (0)