How should i get OAuth token

Thanks for help.
I have one more small ask about expires_in. In website like twitchtokengenerator.com u will get token and reftoken available for 60 days but i never gets more then 15k seconds. How they are fetching this keys ?