This repository contains a minimally changed example to official Discord oauth example to make it work with Google's oauth instead.
There just a few changes needed, thanks to the OIDC standard and the pretty clean example code.
The main changes is tracked in commit e461341 and the full example is in main.rs, which also contains usage documentation at the top.