In reply to Nacho Cota.

The token does expire (in my case, usually about an hour). But it also comes with a refresh token that can be exchanged at any time, and this is encapsulated in my routines within my GitHub project. If you follow my methods for storing your token & refresh token, it *should* work. I've worked with dozens of SAS customers who successfully use this method.