Skip to content

Commit

Permalink
feat(auth): use gnap error middleware on idp api
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Nov 13, 2024
1 parent be426fa commit a0724ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/auth/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ export class App {

const router = new Router<DefaultState, AppContext>()
router.use(bodyParser())
router.use(gnapServerErrorMiddleware)

const openApi = await this.container.use('openApi')
const interactionRoutes = await this.container.use('interactionRoutes')
Expand Down
2 changes: 2 additions & 0 deletions packages/auth/src/openapi/specs/id-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ paths:
description: Interaction id
'401':
description: Unauthorized
'500':
description: Internal Server Error
operationId: get-interact
parameters:
- schema:
Expand Down

0 comments on commit a0724ce

Please sign in to comment.