From f0b5b763d4f0846dd053c287a35555c4a47145ee Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 19 Nov 2018 15:34:13 -0500 Subject: [PATCH] models match db column name --- api/models/Passport.js | 2 +- config/protocols.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/models/Passport.js b/api/models/Passport.js index f23be50..16519a7 100644 --- a/api/models/Passport.js +++ b/api/models/Passport.js @@ -36,7 +36,7 @@ module.exports = { required: true }, password: 'string', - accessToken: 'string', + accesstoken: 'string', provider: 'string', identifier: 'string', tokens: 'json', diff --git a/config/protocols.js b/config/protocols.js index de7dede..da5c636 100644 --- a/config/protocols.js +++ b/config/protocols.js @@ -54,7 +54,7 @@ module.exports.protocols = { protocol: 'local', password, user: newUser.id, - accessToken: token + accesstoken: token }) return next(null, token) } catch (e) {