src/AspNetCore/Identity/Bearer/src/SignInManaging/BearerSignInManager{UserType,BearerTokenType}.cs
/// <summary>
/// Deletes the refresh token associated by <see cref="BearerSignInManagerContext.Principal"/>.
/// </summary>
Deletes the refresh token associated by .
Deletes the refresh token associated by .
protected async Task DeleteUserRefreshTokenAsync(ClaimsPrincipal principal)
        {
            var refreshTokenId = BearerSignInManagerUtils.FindRefreshTokenId(principal);
            try {
                await TryDeleteExpiredRefreshTokensAsync();
                if (!await bearerTokenStore.TryDeleteAsync(refreshTokenId)) {
                    throw new ArgumentException("The refresh token cannot be deleted because its identifier is not deposited.");
                }
            } catch (Exception? error) {
                var insensitiveErrorMessage = "The refresh token could not be deleted.";
                logger.LogCritical(error, insensitiveErrorMessage);
                throw;
            }
        }
protected async Task DeleteUserRefreshTokenAsync ( ClaimsPrincipal principal ) { var refreshTokenId = BearerSignInManagerUtils . FindRefreshTokenId ( principal ) ; try { await TryDeleteExpiredRefreshTokensAsync ( ) ; if ( ! await bearerTokenStore . TryDeleteAsync ( refreshTokenId ) ) { throw new ArgumentException ( " " ) ; } } catch ( Exception ? error ) { var insensitiveErrorMessage = " " ; logger . LogCritical ( error , insensitiveErrorMessage ) ; throw ; } }
Deletes the refresh token associated by .
Deletes the refresh token associated by .
// Try but dont rely on expire refreshed tokens.
principal
ClaimsPrincipal