Move Token methods into AppDelegate