Set token in different file formats