Use HandleAuthenticateOnceSafeAsync in Cookie auth
This commit is contained in:
parent
926c7fab4b
commit
a344684d06
|
|
@ -165,7 +165,7 @@ namespace Microsoft.AspNetCore.Authentication.Cookies
|
||||||
}
|
}
|
||||||
|
|
||||||
// REVIEW: Should this check if there was an error, and then if that error was already handled??
|
// REVIEW: Should this check if there was an error, and then if that error was already handled??
|
||||||
var ticket = (await HandleAuthenticateOnceAsync())?.Ticket;
|
var ticket = (await HandleAuthenticateOnceSafeAsync())?.Ticket;
|
||||||
if (ticket != null)
|
if (ticket != null)
|
||||||
{
|
{
|
||||||
if (_refreshIssuedUtc.HasValue)
|
if (_refreshIssuedUtc.HasValue)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue