You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a completely fresh install, I can register using e.g. Facebook. Then I log out, and try to register using Google+. Then I get:
failed to obtain access token (status: 400 data: { "error" : "invalid_grant", "error_description" : "Invalid code." })
at /Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth2.js:125:38
at /Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:177:18
at passBackControl (/Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:124:9)
at IncomingMessage.<anonymous> (/Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:143:7)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:938:16
at process._tickCallback (node.js:419:13)
Log:
GET /auth/facebook/callback?code=AQBPSE7Io1K0Ki1kzI1QabFBgMFJafh_JIxrm4s31oWBVZYi50i2DkSpZO-ZCZlJUXWkfgjItHbEqWjPIGH8yp9S1gnecYG94YLQJmaEtYEiALCcfRsGRrPgo1OljnR9b_XoT1kf5izeYb9hg_JOFG3o70_nF_NX5kmXTwDOhrNXQJ4Ry_O4cpoFRZQDRTIz2vZhLPXRXLrEJqEEsPovj-CYmnjg1lWJKBp6aZ7HlB-DSmF-NDPzpGMOzKq50Om5I07xNYZR6cQKVJgYWfmJfde34pmmgaP40X-FUX8g7J7cFxGRHkQt5bXHVz7qWCrX_mM 302 868ms - 58b
GET /api/users/me 200 6ms - 444b
[undefined:undefined] CONNECTED
GET /api/things 304 2ms
GET /api/things 304 2ms
[undefined:undefined] DISCONNECTED
GET /api/users/me 200 3ms - 444b
[undefined:undefined] CONNECTED
GET /api/things 200 3ms
GET /login 200 2ms
[undefined:undefined] DISCONNECTED
GET /auth/google 302 1ms - 0b
ValidationError: The specified email address is already in use.
at model.Document.invalidate (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/document.js:1021:32)
at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/document.js:970:16
at validate (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/schematype.js:610:7)
at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/schematype.js:624:11
at Promise. (/Users/thomasorten/Development/www/testapp/server/api/user/user.model.js:87:16)
at Promise. (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8)
at Promise.emit (events.js:95:17)
at Promise.emit (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)
at Promise.fulfill (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20)
at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/query.js:1394:13
ValidationError: The specified email address is already in use.
at model.Document.invalidate (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/document.js:1021:32)
at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/document.js:970:16
at validate (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/schematype.js:610:7)
at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/schematype.js:624:11
at Promise. (/Users/thomasorten/Development/www/testapp/server/api/user/user.model.js:87:16)
at Promise. (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8)
at Promise.emit (events.js:95:17)
at Promise.emit (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)
at Promise.fulfill (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20)
at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/query.js:1394:13
GET /auth/google/callback?code=4/UzJbSCzQDUZax-NGKmhauM__c1zN.0nHznbs0iV4SPvB8fYmgkJyxZnf6kAI 500 726ms
failed to obtain access token (status: 400 data: {
"error" : "invalid_grant",
"error_description" : "Invalid code."
})
at /Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth2.js:125:38
at /Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:177:18
at passBackControl (/Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:124:9)
at IncomingMessage. (/Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:143:7)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:938:16
at process._tickCallback (node.js:419:13)
Hi!
Using a completely fresh install, I can register using e.g. Facebook. Then I log out, and try to register using Google+. Then I get:
Log:
GET /auth/facebook/callback?code=AQBPSE7Io1K0Ki1kzI1QabFBgMFJafh_JIxrm4s31oWBVZYi50i2DkSpZO-ZCZlJUXWkfgjItHbEqWjPIGH8yp9S1gnecYG94YLQJmaEtYEiALCcfRsGRrPgo1OljnR9b_XoT1kf5izeYb9hg_JOFG3o70_nF_NX5kmXTwDOhrNXQJ4Ry_O4cpoFRZQDRTIz2vZhLPXRXLrEJqEEsPovj-CYmnjg1lWJKBp6aZ7HlB-DSmF-NDPzpGMOzKq50Om5I07xNYZR6cQKVJgYWfmJfde34pmmgaP40X-FUX8g7J7cFxGRHkQt5bXHVz7qWCrX_mM 302 868ms - 58b GET /api/users/me 200 6ms - 444b [undefined:undefined] CONNECTED GET /api/things 304 2ms GET /api/things 304 2ms [undefined:undefined] DISCONNECTED GET /api/users/me 200 3ms - 444b [undefined:undefined] CONNECTED GET /api/things 200 3ms GET /login 200 2ms [undefined:undefined] DISCONNECTED GET /auth/google 302 1ms - 0b ValidationError: The specified email address is already in use. at model.Document.invalidate (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/document.js:1021:32) at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/document.js:970:16 at validate (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/schematype.js:610:7) at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/schematype.js:624:11 at Promise. (/Users/thomasorten/Development/www/testapp/server/api/user/user.model.js:87:16) at Promise. (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8) at Promise.emit (events.js:95:17) at Promise.emit (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38) at Promise.fulfill (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20) at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/query.js:1394:13 ValidationError: The specified email address is already in use. at model.Document.invalidate (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/document.js:1021:32) at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/document.js:970:16 at validate (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/schematype.js:610:7) at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/schematype.js:624:11 at Promise. (/Users/thomasorten/Development/www/testapp/server/api/user/user.model.js:87:16) at Promise. (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8) at Promise.emit (events.js:95:17) at Promise.emit (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38) at Promise.fulfill (/Users/thomasorten/Development/www/testapp/node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20) at /Users/thomasorten/Development/www/testapp/node_modules/mongoose/lib/query.js:1394:13 GET /auth/google/callback?code=4/UzJbSCzQDUZax-NGKmhauM__c1zN.0nHznbs0iV4SPvB8fYmgkJyxZnf6kAI 500 726ms failed to obtain access token (status: 400 data: { "error" : "invalid_grant", "error_description" : "Invalid code." }) at /Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth2.js:125:38 at /Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:177:18 at passBackControl (/Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:124:9) at IncomingMessage. (/Users/thomasorten/Development/www/testapp/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:143:7) at IncomingMessage.emit (events.js:117:20) at _stream_readable.js:938:16 at process._tickCallback (node.js:419:13)