Request offline token
Refactor templates