My question about token issues when logging in is a bit off topic, so I’ll stop talking about it here. The login-without-user-input question has been resolved so this thread can safely be left to close itself.
Further discussion of the token/login issue (including solutions) is taking place in this thread.