Skip to content

Commit

Permalink
Merge pull request #18 from veracity/feature/metadata-passthrough
Browse files Browse the repository at this point in the history
Added passthrough of the metadata URL from strategy config to refresh middleware.
  • Loading branch information
rudfoss committed Oct 1, 2019
2 parents 894eaf7 + 1aeae56 commit 4ab1054
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@veracity/node-auth",
"version": "1.0.1",
"version": "1.0.2",
"description": "A library for authenticating with Veracity and retrieving one or more access tokens for communicating with APIs.",
"scripts": {
"build:copy-files": "ts-node -T scripts/copy-files.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/setupWebAppAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const setupWebAppAuth = <TUser = any>(
Object.assign(anyReq.user.accessTokens, {
[tokenData.scope]: tokenData
})
}, VERACITY_METADATA_ENDPOINT)
}, strategy.metadataURL || VERACITY_METADATA_ENDPOINT)

return {
refreshTokenMiddleware,
Expand Down

0 comments on commit 4ab1054

Please sign in to comment.