https://bugzilla.wikimedia.org/show_bug.cgi?id=59678
--- Comment #7 from Ricordisamoa ricordisamoa@openmailbox.org --- (In reply to Merlijn van Deen from comment #6)
The entire problem is /caching/ the tokens. They are not valid for a fixed time, they are valid of /one edit/.
https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2014-August/000...
«All tokens may be cached as long as the session is valid; none are dependent on factors such as the page being edited or the user being targeted.»
And some of them are always the same (e.g. editToken & protectToken). They will be merged with the change announced above.
However, since we want to be able to work with multiple account on the same wiki, we need better caching.