Skip to content

Commit

Permalink
fix: remove incorrect return type
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Oct 24, 2024
1 parent c215c4d commit 3213333
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/oid4vci/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
retrieveAuthorizationCodeAccessToken,
retrievePreAuthorizedCodeAccessToken,
} from './authorization/access-token/access-token'
import type { AccessTokenResponse } from './authorization/access-token/v-access-token'
import {
type CreateAuthorizationRequestUrlOptions,
createAuthorizationRequestUrl,
Expand Down Expand Up @@ -124,10 +123,7 @@ export class Oid4vciClient {
'txCode' | 'issuerMetadata' | 'additionalRequestPayload' | 'dpop'
> & {
credentialOffer: CredentialOfferObject
}): Promise<{
accessTokenResponse: AccessTokenResponse
authorizationServer: string
}> {
}) {
if (!credentialOffer.grants?.[preAuthorizedCodeGrantIdentifier]) {
throw new Oid4vcError(`The credential offer does not contain the '${preAuthorizedCodeGrantIdentifier}' grant.`)
}
Expand Down

0 comments on commit 3213333

Please sign in to comment.