Use token_auth for auto login


According to this document (How do I automatically login my users in Piwik when they go from my CMS to Piwik? - Analytics Platform - Matomo), we must use the md5 sum of the user’s password. Would it be possible to make it so we can use the token_auth for auto login instead of the md5 of the password? In order to get the md5, I have to go get it from the database, whereas the token_auth is displayed in the user admin area, which makes it much easier to code an auto login.