src/AspNetCore/Identity/Bearer/src/SignInManaging/BearerSignInManager{UserType,BearerTokenType}.cs
/// <summary>
/// Validates whether the refresh token is valid.
/// </summary>
/// <param name="principal"></param>
/// <exception cref="FormatException" />
Validates whether the refresh token is valid.
Validates whether the refresh token is valid .
public void ValidatePrincipalRefreshToken(ClaimsPrincipal principal)
        {
            principal = principal ?? throw new ArgumentNullException(nameof(principal));
            var hasRefreshTokenId = Guid.TryParse(principal.FindFirstValue(BearerSignInManagerDefaults.BearerSignInManagerRefreshTokenIdClaimType), out _);
            if (!hasRefreshTokenId) {
                throw new FormatException("The refresh token is not valid.");
            }
        }
public void ValidatePrincipalRefreshToken ( ClaimsPrincipal principal ) { principal = principal ?? throw new ArgumentNullException ( nameof ( principal ) ) ; var hasRefreshTokenId = Guid . TryParse ( principal . FindFirstValue ( BearerSignInManagerDefaults . BearerSignInManagerRefreshTokenIdClaimType ) , out _ ) ; if ( ! hasRefreshTokenId ) { throw new FormatException ( " " ) ; } }
Validates whether the refresh token is valid.
Validates whether the refresh token is valid .
None
principal
ClaimsPrincipal
None