google-id-token
Decodes and verifies the signature on a google id_token.
Instructions
This module relies on you to provide a function that would return the google certificates that will be used for signature validation. This is to allow the module to adapt to whatever caching strategy the host application intends to have.
A simple method that hits the google url every time is below:
var request = ;// kid = the key id specified in the token {
And below is how you would use the module to parse a google id_token
var googleIdToken = var parser = getKeys: getGoogleCerts ;parser;