Skip to content

Commit 67d570f

Browse files
authored
Merge pull request #396 from swdotcom/tracker-auth-token
tracker auth token fix
2 parents d950f2a + b033b28 commit 67d570f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/managers/TrackerManager.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ export class TrackerManager {
294294
// Dynamic attributes
295295

296296
getJwtParams(): any {
297-
return {jwt: getItem('jwt')?.split('JWT ')[1]};
297+
let token: string = getItem('jwt');
298+
if (token?.match(/\s/)) {
299+
return {jwt: token?.split(/\s/)[1]};
300+
}
301+
return {jwt: token};
298302
}
299303

300304
getProjectParams() {

0 commit comments

Comments
 (0)