use generateAndSaveOnxshopToken function