Example #1
0
        public async Task LogoutAsync(string userId)
        {
            await _signInManager.SignOutAsync();

            var dbUser = await _userManager.FindByIdAsync(userId);

            if (dbUser is not null)
            {
                await _jwtProvider.RemoveRefreshTokenAsync(dbUser);
            }
        }