Пример #1
0
        public Task RemoveRefreshTokenAsync(JwtRefreshToken jwtRefreshToken)
        {
            var token = JwtRefreshTokens.FirstOrDefault(x =>
                                                        x.UserId == jwtRefreshToken.UserId && x.Token == jwtRefreshToken.Token);

            JwtRefreshTokens.Remove(token);
            return(Task.CompletedTask);
        }
Пример #2
0
 public Task AddRefreshTokenAsync(JwtRefreshToken jwtRefreshToken)
 {
     JwtRefreshTokens.Add(jwtRefreshToken);
     return(Task.CompletedTask);
 }