This implements OAuth 2.0 token refresh for Google APIs.
While we plan to have support for this in SDK, we already need to use this in PoCs now. Plus it's easier to use and better decoupled than handling this through Passport.js strategy.
The worst thing here is redacting the test recordings because:
use case accepts sensitive inputs
which are url encoded and therefore not matched by the testing lib
and I need to remove access token from the response
Thanks to @martinalbert for help!
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
This implements OAuth 2.0 token refresh for Google APIs.
While we plan to have support for this in SDK, we already need to use this in PoCs now. Plus it's easier to use and better decoupled than handling this through Passport.js strategy.
The worst thing here is redacting the test recordings because:
Thanks to @martinalbert for help!
Types of changes
Checklist: