yellow discharge

OK so I woke up experiencing a lot of cramping  and back pain as if my period was coming. which is not due for another two an half weeks and when I went to wipe there was this light yellow discharge never experienced something like this I'm pretty sure is not a yeast infection and I have no stds so wondering if anyone had something like this before they got there bfp