Skip to content

Commit 4877968

Browse files
committed
Remove extra comments
1 parent 78b7eda commit 4877968

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

index.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ const oauthPlugin = fp(function (fastify, options, next) {
8585
}
8686

8787
const cbk = function (o, code, callback) {
88-
console.log(
89-
'[FASTIFY OAUTH2 LIBRARY]: ',
90-
'fastify[name]: ', o,
91-
'code: ', code
92-
)
9388
const getTokenParams = {
9489
code: code,
9590
redirect_uri: callbackUri,
@@ -99,10 +94,6 @@ const oauthPlugin = fp(function (fastify, options, next) {
9994
grant_type: 'authorization_code'
10095
})
10196
}
102-
console.log(
103-
'[FASTIFY OAUTH2 LIBRARY]: ',
104-
'getTokenParams: ', JSON.stringify(getTokenParams)
105-
)
10697
return callbackify(o.oauth2.authorizationCode.getToken.bind(
10798
o.oauth2.authorizationCode, { ...getTokenParams }
10899
))(callback)
@@ -112,20 +103,7 @@ const oauthPlugin = fp(function (fastify, options, next) {
112103
const code = request.query.code
113104
const state = request.query.state
114105

115-
console.log('[FASTIFY OAUTH2 LIBRARY]: ',
116-
'getAccessTokenFromAuthorizationCodeFlowCallbacked: ',
117-
'request.query: ',
118-
JSON.stringify(request.query)
119-
)
120-
121106
checkStateFunction(state, function (err) {
122-
console.log(
123-
'[FASTIFY OAUTH2 LIBRARY]: ',
124-
'checkStateFunction callback: ',
125-
'state: ',
126-
JSON.stringify(state)
127-
)
128-
129107
if (err) {
130108
callback(err)
131109
return

0 commit comments

Comments
 (0)