Can now pass token as a text file or a string