What is the problem?
If I edit on mobile as an anonymous user on a wiki with temporary accounts enabled, after submitting I am redirected to https://login.wikimedia.org/wiki/Special:CentralLogin/start?token=<token> with error The provided authentication token is either expired or invalid.
It does appear that the temporary account is created successfully on the wiki I was editing.
I have reproduced on https://test.wikipedia.org, https://de.wikipedia.beta.wmflabs.org and on my local.
I have only been able to reproduced it with the VisualEditor.
Steps to reproduce problem
- Go to https://test.m.wikipedia.org/wiki/Staple_right
- Make sure you are not logged in as either a named or temporary account
- Make an edit with the VisualEditor
Expected behaviour: After clicking "Publish", you are redirected back to https://test.m.wikipedia.org/wiki/Staple_right, and are now logged in as a temporary user.
Observed behaviour: You end up on https://login.wikimedia.org/wiki/Special:CentralLogin/start?token=<token> with the The provided authentication token is either expired or invalid error.
Environment
Browser: Firefox 115, iPhone 14 Safari.
Wiki(s): https://test.wikipedia.org MediaWiki 1.43.0-wmf.15 (b30ac00) 22:23, 22 July 2024. MobileFrontend 2.4.1 (438b5e8) 07:25, 22 July 2024.
Editor: Mobile VisualEditor – (81580e9) 07:26, 22 July 2024.

