google-oath-certs

0.0.1 • Public • Published

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
  // ...
});
 

Package Sidebar

Install

npm i google-oath-certs

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jamestalmage