src/AspNetCore/Identity/Bearer/src/Stores/BearerTokenStore{DbContextType,BearerTokenType}.cs
/// <summary>
/// Deletes refresh token by identifier.
/// </summary>
/// <param name="refreshTokenId">The refresh token identifier.</param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
/// <exception cref="InvalidOperationException">Token by token identifier not found.</exception>
Deletes refresh token by identifier.
Deletes refresh token by identifier .
public async Task DeleteAsync(Guid refreshTokenId, CancellationToken cancellationToken = default)
        {
            var entity = await FindAsync(refreshTokenId, cancellationToken);
            if (entity is null) {
                throw new InvalidOperationException("The refresh token does not exist.");
            }
            dbContext.Remove(entity);
        }
public async Task DeleteAsync ( Guid refreshTokenId , CancellationToken cancellationToken = default ) { var entity = await FindAsync ( refreshTokenId , cancellationToken ) ; if ( entity is null ) { throw new InvalidOperationException ( " " ) ; } dbContext . Remove ( entity ) ; }
Deletes refresh token by identifier.
Deletes refresh token by identifier .
None
Token by token identifier not found.
Token by token identifier not found .
refreshTokenId
Guid
The refresh token identifier.
The refresh token identifier .
cancellationToken
CancellationToken
None