Skip to content

Commit 93fe769

Browse files
committed
refactor: remove unused param
1 parent 78457a6 commit 93fe769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/agent-api/src/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function getAzureOpenAiTokenProvider() {
1818
return getBearerTokenProvider(getCredentials(), azureOpenAiScope);
1919
}
2020

21-
export function getAuthenticationUserId(request: HttpRequest, body?: any): string | undefined {
21+
export function getAuthenticationUserId(request: HttpRequest): string | undefined {
2222
let userId: string | undefined;
2323

2424
// Get the user ID from Azure easy auth
@@ -33,7 +33,7 @@ export function getAuthenticationUserId(request: HttpRequest, body?: any): strin
3333

3434
export async function getInternalUserId(request: HttpRequest, body?: any): Promise<string | undefined> {
3535
// Get the user ID from Azure easy auth if it's available,
36-
let authUserId = getAuthenticationUserId(request, body);
36+
let authUserId = getAuthenticationUserId(request);
3737
if (authUserId) {
3838
// Exchange the auth user ID to the internal user ID
3939
const db = await UserDbService.getInstance();

0 commit comments

Comments
 (0)