fix bug. Using the access_token query parameter is deprecated and will be removed July 1st, 2020. (c) Github

This commit is contained in:
Alexey 2020-02-28 11:23:54 +03:00
parent 627490bbe6
commit 27676cabf0

View File

@ -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