How do detect a crappy boss / toxic environment when interviewing?

I am currently working in a position that felt like a great startup to work at during my interview. However, a few months into the job I realized my boss was a complete and utter asshole. Given this is my first job out of college, I’ve stuck with it and I am looking for a new role. How can I detect during the interview / research phase to avoid such situations?