mod: cleanup auth
This commit is contained in:
@ -35,11 +35,10 @@ namespace ScoreTracker.API
|
||||
{
|
||||
if (checkAuth)
|
||||
{
|
||||
var authHelper = new AuthHelper();
|
||||
await authHelper.EnsureLoggedIn();
|
||||
if (!authHelper.IsLoggedIn)
|
||||
var signinResponse = await Authentication.ValidateAndSignIn();
|
||||
if (!signinResponse.Success)
|
||||
{
|
||||
throw new Exception($"Failed to log in: {authHelper.FailReason}");
|
||||
throw new Exception($"Failed to log in: {signinResponse.Response}");
|
||||
}
|
||||
}
|
||||
var jsonString = JsonConvert.SerializeObject(json, Formatting.None);
|
||||
|
Reference in New Issue
Block a user