Replace deprecated wfGenerateToken (1.20)

Change-Id: I49af49630e0175124085b632481420b995f1ed96