Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Jan 9, 2025
1 parent 5a0dba4 commit bf1217f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/issuer-rest/lib/OID4VCIServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export class OID4VCIServer<DIDDoc extends object> {
getIssueStatusEndpoint(this.router, this.issuer, { ...opts?.endpointOpts?.getStatusOpts, baseUrl: this.baseUrl })
}
if (this.isAuthorizationChallengeEndpointEnabled(opts?.endpointOpts?.authorizationChallengeOpts)) {
// TODO errors or just continue without endpoint
if (!opts?.endpointOpts?.authorizationChallengeOpts?.createAuthRequestUriCallback) {
throw Error(
`Unable to enable authorization challenge endpoint. No createAuthRequestUriCallback present in authorization challenge options`,
Expand Down
2 changes: 1 addition & 1 deletion packages/issuer-rest/lib/oid4vci-api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function authorizationChallengeEndpoint<DIDDoc extends object>(
const path = determinePath(baseUrl, endpoint, { stripBasePath: true })
LOG.log(`[OID4VCI] authorization challenge endpoint at ${path}`)
router.post(path, async (request: Request, response: Response) => {
const authorizationChallengeRequest = request.body as CommonAuthorizationChallengeRequest // TODO we need the request object here
const authorizationChallengeRequest = request.body as CommonAuthorizationChallengeRequest
const {
client_id,
issuer_state,
Expand Down

0 comments on commit bf1217f

Please sign in to comment.