Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnstee committed Nov 9, 2023
1 parent 0d58748 commit 7e40960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/SMIPDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public SMIPDataService()
_currentBearerToken = Environment.GetEnvironmentVariable("SMIP_BEARER_TOKEN");

// optionally login
if (string.IsNullOrEmpty(_currentBearerToken))
if (!string.IsNullOrEmpty(_instanceGraphQLEndpoint) && string.IsNullOrEmpty(_currentBearerToken))
{
string newToken = GetBearerToken(_instanceGraphQLEndpoint).GetAwaiter().GetResult();
if (newToken != null)
Expand Down

0 comments on commit 7e40960

Please sign in to comment.