Skip to content

jamestalmage/google-oath-certs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fetches certs for validating google oath tokens

Resources

Stars

Watchers

Forks

Packages

No packages published