Skip to content

Commit 21240ca

Browse files
committed
throw errors from auth factory functions
1 parent 628e181 commit 21240ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@makerx/node-common",
3-
"version": "1.4.2",
3+
"version": "1.5.0",
44
"private": false,
55
"description": "A set of MakerX core NodeJS types and utilities",
66
"author": "MakerX",

src/http.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export class HttpClient<TContext = never> {
116116
authHeaders = authFactory ? await authFactory(requestContext as TContext) : {}
117117
} catch (error) {
118118
logger?.error('Authentication via authFactory failed', { error })
119+
throw error
119120
}
120121
const headers: Record<string, string> = {
121122
...baseHeaders,

0 commit comments

Comments
 (0)