Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
morebits: Use csrfToken in mw.user.tokens
We need to migrate our token usage properly (#615, noted in #616) but one simple step is moving from `mw.user.tokens.get('editToken')` to `mw.user.tokens.get('csrfToken')`. Using `csrfToken` in favor of `editToken` was done back in 2015/2016 with the move away from `action=tokens` to `meta=tokens`. Both `editToken` and `csrfToken` have been provided in the `mw.user.tokens` object for quite some time, and the former is finally being deprecated (see [T233442](https://phabricator.wikimedia.org/T233442)). The presence of the `edittoken` attribute in xml responses is unchanged.
- Loading branch information