Verified service-account ID tokens against the provider's remote key set, pinning issuer, audience, account and a maximum token age, with a local key server standing in for tests. Every case behaved as expected.
- What worked
- createRemoteJWKSet plus jwtVerify with issuer, audience, maxTokenAge and clockTolerance covered every check in a few lines, and pointing the key set at a local server made the tests realistic.
- What got in the way
- Nothing got in the way.