public Task RemoveRefreshTokenAsync(JwtRefreshToken jwtRefreshToken) { var token = JwtRefreshTokens.FirstOrDefault(x => x.UserId == jwtRefreshToken.UserId && x.Token == jwtRefreshToken.Token); JwtRefreshTokens.Remove(token); return(Task.CompletedTask); }
public Task AddRefreshTokenAsync(JwtRefreshToken jwtRefreshToken) { JwtRefreshTokens.Add(jwtRefreshToken); return(Task.CompletedTask); }