Rename access token param to be shorter (#40)

This commit is contained in:
Simon J
2021-08-31 22:16:20 +10:00
committed by GitHub
parent f045867554
commit 9dcac1f324
3 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ import _, { shuffle } from "underscore";
import morgan from "morgan";
import { takeWithRepeats } from "./utils";
export const BONOB_ACCESS_TOKEN_HEADER = "bonob-access-token";
export const BONOB_ACCESS_TOKEN_HEADER = "bat";
interface RangeFilter extends Transform {
range: (length: number) => string;

View File

@@ -368,7 +368,7 @@ function bindSmapiSoapServiceToExpress(
const urlWithToken = (accessToken: string) =>
bonobUrl.append({
searchParams: {
"bonob-access-token": accessToken,
"bat": accessToken,
},
});