Skip to content

Commit

Permalink
fix: source handling
Browse files Browse the repository at this point in the history
  • Loading branch information
arpowers committed Feb 28, 2020
1 parent ec28649 commit b2e14fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @factor/endpoint/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { emitEvent } from "@factor/api/events"
import { isNode } from "@factor/api"
import { isNode, setting } from "@factor/api"
import log from "@factor/api/logger"
import { localhostUrl } from "@factor/api/url"
import { userInitialized } from "@factor/user"
Expand Down Expand Up @@ -62,7 +62,7 @@ export const authorizedRequest = async (
const Authorization = await bearerToken(data)

// Allow endpoints to deduce which app is requesting from them
const source = ""
const source = setting("package.name") ?? ""

options.headers = { Authorization, from: source, ...headers }
options.timeout = 30000
Expand Down

0 comments on commit b2e14fd

Please sign in to comment.