Refining URL lookup

This commit is contained in:
Chris Troutner
2026-02-04 15:06:55 -07:00
parent b25f55ce6a
commit 7f1770ab70
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -49,15 +49,10 @@ export function basicAuthMiddleware (req, res, next) {
const providedToken = parts[1]
// Debug logging
wlogger.verbose(`Basic auth check: providedToken="${providedToken}", configuredToken="${configuredToken}", path="${req.path}"`)
// Compare tokens
if (providedToken === configuredToken) {
req.locals.basicAuthValid = true
wlogger.verbose(`Basic auth validated for request to ${req.path}`)
} else {
wlogger.verbose(`Basic auth failed: token mismatch for request to ${req.path}`)
}
// Always continue to next middleware
+1 -1
View File
@@ -149,7 +149,7 @@ class FulcrumUseCases {
console.log('getTransactionsBulk() bearerToken: ', bearerToken)
if (bearerToken) {
// Create a temporary bchjs instance with the bearer token from the request
const restURL = process.env.RESTURL || process.env.REST_URL || process.env.LOCAL_RESTURL || config.restURL
const restURL = config.restURL
console.log('getTransactionsBulk() restURL: ', restURL)
bchjsInstance = new BCHJS({