From 08fcfa36cb4534ff8279d660d44184406990594f Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 30 Jan 2020 15:15:42 +0300 Subject: [PATCH] sign in --- .env.example | 2 +- package.json | 2 +- pages/index.vue | 37 +++++++++++++++++++----- server/controllers/contributions.js | 32 --------------------- server/controllers/sessions.js | 43 +++++++++++++--------------- server/index.js | 22 +++++++------- server/snark_files/current.params | Bin 295132 -> 297436 bytes yarn.lock | 2 +- 8 files changed, 64 insertions(+), 76 deletions(-) diff --git a/.env.example b/.env.example index 83e0ed6..95ae791 100644 --- a/.env.example +++ b/.env.example @@ -8,5 +8,5 @@ MYSQL_DATABASE=phase2 TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= -TWITTER_CALLBACK_URL=http://localhost:8000/twitter_callback +TWITTER_CALLBACK_URL=http://localhost:3000/api/twitter_callback SESSION_SECRET= diff --git a/package.json b/package.json index d27ac63..4fff6f7 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "eslint --ext .js,.vue --ignore-path .gitignore ." }, "dependencies": { - "@nuxtjs/axios": "^5.3.6", + "@nuxtjs/axios": "^5.9.3", "@open-wc/webpack-import-meta-loader": "^0.4.1", "async-mutex": "^0.1.4", "aws-sdk": "^2.610.0", diff --git a/pages/index.vue b/pages/index.vue index 2ec9322..5443ab1 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,6 +1,8 @@