public AuthService(IUserRepository userRepository, IJwtUtil jwtUtil) { this.jwtUtil = jwtUtil; this.userRepository = userRepository; }
public AuthService(IJwtUtil jwtUtil, IUserRepository userRepository, IAdministratorRepository administratorRepository) { this.jwtUtil = jwtUtil; this.userRepository = userRepository; this.administratorRepository = administratorRepository; }
// initialize middleware and inject interfaces public TokenActiveMiddleware(IJwtUtil jwtUtil, IHttpContextAccessor httpContextAccessor) { this.jwtUtil = jwtUtil; this.httpContextAccessor = httpContextAccessor; }