From 27676cabf0a9fbc49a0d7439092bcd525349319f Mon Sep 17 00:00:00 2001 From: Alexey Date: Fri, 28 Feb 2020 11:23:54 +0300 Subject: [PATCH] fix bug. Using the `access_token` query parameter is deprecated and will be removed July 1st, 2020. (c) Github --- server/controllers/authorize.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/controllers/authorize.js b/server/controllers/authorize.js index 003086a..87df5e0 100644 --- a/server/controllers/authorize.js +++ b/server/controllers/authorize.js @@ -34,6 +34,7 @@ const github = new oauth.OAuth2( 'login/oauth/authorize', 'login/oauth/access_token' ) +github.useAuthorizationHeaderforGET(true) function validateProvider(req, res, next) { const { provider } = req.params