Parse OAuth 2.0 tokens.
$ npm install oauth2-token
var token = oauth2token.parse('{
"access_token":"mF_9.B5f-4.1JqM",
"token_type":"Bearer",
"expires_in":3600,
"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA"
}');
// => { type: 'bearer', accessToken: 'mF_9.B5f-4.1JqM', expiresAt: Date(...) }
$ npm install
$ npm test
Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>