Comment configurer Google OAuth2 sur un site ?

You’re asking about oauth, not 2fa. Check out this guide: