Skip to content

Commit 56f5629

Browse files
committed
chore: configurable WellKnownHostLocation
1 parent 3a72c28 commit 56f5629

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/issuer-rest/lib/OID4VCIServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class OID4VCIServer {
181181
this._issuer = opts?.issuer ? opts.issuer : buildVCIFromEnvironment()
182182
this._asClientOpts =
183183
opts.asClientOpts || this._issuer.asClientOpts ? ({ ...opts.asClientOpts, ...this._issuer.asClientOpts } as ClientMetadata) : undefined
184-
this._wellknownHostLocation = opts?.wellKnownHostLocation ?? (process.env.WELLKNOWN_HOST_LOCATION as WellKnownHostLocation)
184+
this._wellknownHostLocation = opts?.wellKnownHostLocation ?? (process.env.WELLKNOWN_HOST_LOCATION as WellKnownHostLocation) ?? WellKnownHostLocation.AT_BOTH
185185
pushedAuthorizationEndpoint(this.router, this.issuer, this.authRequestsData)
186186

187187
// Create root router for alternative .well-known endpoints if needed

0 commit comments

Comments
 (0)