Sleep issues - help!

My daughter is 2 and ever since we came home from the hospital she pretty much has been an excellent sleeper. Had no issue transitioning to her crib either. The past week she throws a fit when it’s time to lay down and cries for me. I’ve waited it out but doesn’t seem to help. She has to fall asleep with me then I can attempt at putting her to bed. I’m just wondering what may be causing this? I’m thinking maybe she’s getting her back teeth in so could that be it?

It could be teething.