Stop logging me out from GitHub!

As title. Every few minutes my snap account is logged out from GitHub. Why?