Initial working google auth
This commit is contained in:
parent
fb52d49f74
commit
00a40f6bba
1058 changed files with 114441 additions and 0 deletions
25
auth-service/node_modules/passport-google-oauth20/lib/errors/googleplusapierror.js
generated
vendored
Normal file
25
auth-service/node_modules/passport-google-oauth20/lib/errors/googleplusapierror.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* `GooglePlusAPIError` error.
|
||||
*
|
||||
* References:
|
||||
* - https://developers.google.com/+/web/api/rest/
|
||||
*
|
||||
* @constructor
|
||||
* @param {string} [message]
|
||||
* @param {number} [code]
|
||||
* @access public
|
||||
*/
|
||||
function GooglePlusAPIError(message, code) {
|
||||
Error.call(this);
|
||||
Error.captureStackTrace(this, arguments.callee);
|
||||
this.name = 'GooglePlusAPIError';
|
||||
this.message = message;
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
// Inherit from `Error`.
|
||||
GooglePlusAPIError.prototype.__proto__ = Error.prototype;
|
||||
|
||||
|
||||
// Expose constructor.
|
||||
module.exports = GooglePlusAPIError;
|
||||
22
auth-service/node_modules/passport-google-oauth20/lib/errors/userinfoerror.js
generated
vendored
Normal file
22
auth-service/node_modules/passport-google-oauth20/lib/errors/userinfoerror.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* `UserInfoError` error.
|
||||
*
|
||||
* @constructor
|
||||
* @param {string} [message]
|
||||
* @param {string} [code]
|
||||
* @access public
|
||||
*/
|
||||
function UserInfoError(message, code) {
|
||||
Error.call(this);
|
||||
Error.captureStackTrace(this, arguments.callee);
|
||||
this.name = 'UserInfoError';
|
||||
this.message = message;
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
// Inherit from `Error`.
|
||||
UserInfoError.prototype.__proto__ = Error.prototype;
|
||||
|
||||
|
||||
// Expose constructor.
|
||||
module.exports = UserInfoError;
|
||||
Loading…
Add table
Add a link
Reference in a new issue