google-oath-certs
v0.0.1
Published
Fetches certs for validating oath tokens
Downloads
1
Maintainers
Readme
google-oath-certs
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
// ...
});