fixed the bug of only web in gmail_2fa_integration.py #2685
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solves the issue: #2581
So earlier it checks only for web in secret json but it will break and not work if in oauth we have desktop or other app, hence need to have support for that as well so added that and fixed.

Earlier, before fixing
After fixing

Summary by cubic
Updated the Gmail 2FA integration script to support credentials files with both "web" and "installed" sections, fixing errors for desktop app OAuth setups.
Besides this I have also checked the ./bin/test.sh and ./bin/lint.sh, there are some fails but that is not due to my code, it is failing in other files that I have not changed.