Nullify IOAuthValidator

This commit is contained in:
Jordan Dominion
2023-11-25 16:04:17 -05:00
parent 991b407580
commit 47c729fdf4
@@ -3,8 +3,6 @@ using System.Threading.Tasks;
using Tgstation.Server.Api.Models;
#nullable disable
namespace Tgstation.Server.Host.Security.OAuth
{
/// <summary>
@@ -29,6 +27,6 @@ namespace Tgstation.Server.Host.Security.OAuth
/// <param name="code">The OAuth response string from web application.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation.</param>
/// <returns>A <see cref="ValueTask{TResult}"/> resulting in <see langword="null"/> if authentication failed, <see cref="global::System.UInt64.MaxValue"/> if a rate limit occurred, and the validated <see cref="OAuthConnection.ExternalUserId"/> otherwise.</returns>
ValueTask<string> ValidateResponseCode(string code, CancellationToken cancellationToken);
ValueTask<string?> ValidateResponseCode(string code, CancellationToken cancellationToken);
}
}