@seamless-auth/express 0.0.2-beta.14 → 0.0.2-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ function buildServiceAuthorization(req, opts) {
|
|
|
145
145
|
const token = createServiceToken({
|
|
146
146
|
subject: req.cookiePayload?.sub || req.user.sub,
|
|
147
147
|
issuer: opts.issuer,
|
|
148
|
-
audience: opts.
|
|
148
|
+
audience: opts.audience,
|
|
149
149
|
serviceSecret: opts.serviceSecret,
|
|
150
150
|
keyId: opts.jwksKid
|
|
151
151
|
});
|
|
@@ -316,6 +316,7 @@ function createSeamlessAuthServer(opts) {
|
|
|
316
316
|
const resolvedOpts = {
|
|
317
317
|
authServerUrl: opts.authServerUrl,
|
|
318
318
|
issuer: opts.issuer,
|
|
319
|
+
audience: opts.audience,
|
|
319
320
|
cookieSecret: opts.cookieSecret,
|
|
320
321
|
serviceSecret: opts.serviceSecret,
|
|
321
322
|
jwksKid: opts.jwksKid ?? "dev-main",
|