There is a module from mendix marketplace called GoogleAuthenticatorConnector. There are a tab that is called Documentation that shows some configuration and there is an example on github on the link: https://github.com/wstrange/GoogleAuth/
Hope it can help you.
Please check this doc, as it mentions direct to authentication and google autheticator:
Two-Factor Authentication - Developer Portal Guide | Mendix Documentation