mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 13:36:50 +01:00
Fix unsetting attemptLoginRefresh
- It previously did nothing
This commit is contained in:
@@ -62,6 +62,9 @@ namespace Tgstation.Server.Client
|
||||
token = await api.Update<Token>(Routes.Root, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (!attemptLoginRefresh)
|
||||
loginHeaders = null;
|
||||
|
||||
var apiHeaders = new ApiHeaders(productHeaderValue, token.Bearer!);
|
||||
|
||||
var client = new ServerClient(ApiClientFactory.CreateApiClient(host, apiHeaders, loginHeaders), token);
|
||||
|
||||
Reference in New Issue
Block a user