I added the print widget to my app, when I set the options and click on "print" (imprimer) JS raises an error : Token required.
I got this issue with Portal for ArcGIS, I tried the same thing using ArcGIS Onlinetrial, it worked without any problem.