Dynamically generating a secret token