0.0.1 • Published 9 years ago

google-oath-certs v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

google-oath-certs

Build Status Code Climate Coverage Status Dependency Status devDependency Status

Part of validating google oath tokens includes validating they have been signed with one googles public certificate. Google issues certificates that expire roughly every 24 hours. This utility simply fetches those certificates for you. It caches the certificate only fetching it from the google servers as required.

var googleCert = require('google-oath-certs');

googleCert(function(err, cert) {
  // use the cert to validate a token
  // ...
});