Example #1
0
 public AccountService(IJwthandler jwthandler, IUserRepository userRepo, IEncrypter encrypter, ITokenRepository repository)
 {
     _repository = repository;
     _jwthandler = jwthandler;
     _encrypter  = encrypter;
     _userRepo   = userRepo;
 }
Example #2
0
 public LoginUserAsync(IUserRepository userRepository, IAccountService accountService,
                       IJwthandler jwtHandler, IMemoryCache memoryCache, IPasswordHasher <User> passwordHasher, ITokenRepository tokenRepository)
 {
     _accountService  = accountService;
     _tokenRepository = tokenRepository;
     _passwordHasher  = passwordHasher;
     _userRepository  = userRepository;
     _jwtHandler      = jwtHandler;
     _memoryCache     = memoryCache;
 }
Example #3
0
 public AuthController(
     IJwthandler jwtHandler,
     IUserRepository userRepository,
     IEncrypter encrypter
     )
 {
     _jwtHandler     = jwtHandler;
     _userRepository = userRepository;
     _encrypter      = encrypter;
 }
Example #4
0
 public RefreshTokenHandler(IJwthandler jwtHandler, IAccountService accountService, IMemoryCache memoryCache)
 {
     _memoryCache    = memoryCache;
     _jwtHandler     = jwtHandler;
     _accountService = accountService;
 }