Skip to content

Commit

Permalink
move throw outside condition
Browse files Browse the repository at this point in the history
  • Loading branch information
DarianM committed Nov 1, 2024
1 parent e90fb80 commit 92b887e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/backend/src/open_payments/auth/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ export function createTokenIntrospectionMiddleware({
} catch (err) {
if (err instanceof OpenPaymentsServerRouteError) {
ctx.set('WWW-Authenticate', `GNAP as_uri=${config.authServerGrantUrl}`)
throw err
}

throw err
}

await next()
Expand Down

0 comments on commit 92b887e

Please sign in to comment.