Skip to content

Commit 4ab1054

Browse files
authored
Merge pull request #18 from veracity/feature/metadata-passthrough
Added passthrough of the metadata URL from strategy config to refresh middleware.
2 parents 894eaf7 + 1aeae56 commit 4ab1054

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@veracity/node-auth",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A library for authenticating with Veracity and retrieving one or more access tokens for communicating with APIs.",
55
"scripts": {
66
"build:copy-files": "ts-node -T scripts/copy-files.ts",

src/helpers/setupWebAppAuth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const setupWebAppAuth = <TUser = any>(
6060
Object.assign(anyReq.user.accessTokens, {
6161
[tokenData.scope]: tokenData
6262
})
63-
}, VERACITY_METADATA_ENDPOINT)
63+
}, strategy.metadataURL || VERACITY_METADATA_ENDPOINT)
6464

6565
return {
6666
refreshTokenMiddleware,

0 commit comments

Comments
 (0)