Skip to content

Commit

Permalink
chore: improve AS detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Jan 29, 2025
1 parent 2021f86 commit 041b42c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/issuer/lib/VcIssuer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
CredentialConfigurationSupportedV1_0_13,
CredentialDataSupplierInput,
CredentialEventNames,
CredentialIssuerMetadata,
CredentialIssuerMetadataOptsV1_0_13,
CredentialOfferEventNames,
CredentialOfferSession,
Expand Down Expand Up @@ -80,7 +79,6 @@ export class VcIssuer {
asClientOpts?: ClientMetadata
},
) {
this.setDefaultTokenEndpoint(issuerMetadata)
this._issuerMetadata = issuerMetadata
this._authorizationServerMetadata = authorizationServerMetadata
this._defaultCredentialOfferBaseUri = args.defaultCredentialOfferBaseUri
Expand Down Expand Up @@ -687,12 +685,6 @@ export class VcIssuer {
return credential
}

private setDefaultTokenEndpoint(issuerMetadata: Partial<CredentialIssuerMetadata>) {
if (!issuerMetadata.token_endpoint) {
issuerMetadata.token_endpoint = `${issuerMetadata.credential_issuer}/token`
}
}

get credentialSignerCallback(): CredentialSignerCallback | undefined {
return this._credentialSignerCallback
}
Expand Down

0 comments on commit 041b42c

Please sign in to comment.