Continuos prompt for Login into github while suing IntelliJ

Hello Everyone.

I am using IntelliJ and its features for version control. i get prompted to give my token credentials every time during pull or push. i enter the token again and get prompted again a little later. How do i disable the continuous prompt for authentication
Help and guidance is appreciated