Einrichtung von Google OAuth2 auf einer Website

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