Skip to content

Commit 83459ff

Browse files
build(deps-dev): bump standard from 16.0.4 to 17.0.0 (#146)
* build(deps-dev): bump standard from 16.0.4 to 17.0.0 Bumps [standard](https://github.com/standard/standard) from 16.0.4 to 17.0.0. - [Release notes](https://github.com/standard/standard/releases) - [Changelog](https://github.com/standard/standard/blob/master/CHANGELOG.md) - [Commits](standard/standard@v16.0.4...v17.0.0) --- updated-dependencies: - dependency-name: standard dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * style(index): use property shorthand Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Frazer Smith <[email protected]>
1 parent 53bbf32 commit 83459ff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ const oauthPlugin = fp(function (fastify, options, next) {
6767
const generateCallbackUriParams = (credentials.auth && credentials.auth[kGenerateCallbackUriParams]) || defaultGenerateCallbackUriParams
6868
const startRedirectPath = options.startRedirectPath
6969
const tags = options.tags || []
70-
const schema = options.schema || { tags: tags }
70+
const schema = options.schema || { tags }
7171

7272
function generateAuthorizationUri (requestObject) {
7373
const state = generateStateFunction(requestObject)
7474
const urlOptions = Object.assign({}, generateCallbackUriParams(callbackUriParams, requestObject, scope, state), {
7575
redirect_uri: callbackUri,
76-
scope: scope,
77-
state: state
76+
scope,
77+
state
7878
})
7979

8080
const authorizationUri = oauth2.authorizationCode.authorizeURL(urlOptions)
@@ -89,7 +89,7 @@ const oauthPlugin = fp(function (fastify, options, next) {
8989

9090
const cbk = function (o, code, callback) {
9191
return callbackify(o.oauth2.authorizationCode.getToken.bind(o.oauth2.authorizationCode, {
92-
code: code,
92+
code,
9393
redirect_uri: callbackUri
9494
}))(callback)
9595
}
@@ -135,7 +135,7 @@ const oauthPlugin = fp(function (fastify, options, next) {
135135

136136
try {
137137
fastify.decorate(name, {
138-
oauth2: oauth2,
138+
oauth2,
139139
getAccessTokenFromAuthorizationCodeFlow,
140140
getNewAccessTokenUsingRefreshToken,
141141
generateAuthorizationUri

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"pre-commit": "^1.2.2",
3333
"simple-get": "^4.0.0",
3434
"snazzy": "^9.0.0",
35-
"standard": "^16.0.4",
35+
"standard": "^17.0.0",
3636
"tap": "^16.0.0",
3737
"tsd": "^0.20.0"
3838
},

0 commit comments

Comments
 (0)