Skip to content

Commit b4e9338

Browse files
committed
Use existing GetToken method to get token during api bearer header creation
1 parent 12170b2 commit b4e9338

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

TarkovMonitor/TarkovTracker.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ internal interface ITarkovTrackerAPI
3535
{
3636
AuthorizationHeaderValueGetter = (rq, cr) => {
3737
return Task.Run<string>(() => {
38-
if (tokens == null || !tokens.ContainsKey(currentProfile)) {
38+
string token = GetToken(currentProfile);
39+
if (token == "") {
3940
throw new Exception("No PVE or PVP profile could be found, launch tarkov first");
4041
}
4142

42-
return tokens[currentProfile];
43+
return token;
4344
});
4445
},
4546
}

0 commit comments

Comments
 (0)