Skip to content

Commit 6abc24e

Browse files
committed
remove test user bypass
1 parent 8e8f2b9 commit 6abc24e

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

backend/src/websockets/auth.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@ export async function getUserIdFromAuthToken(
2525
export async function getUserInfoFromAuthToken(
2626
authToken: string,
2727
): Promise<UserInfo | undefined> {
28-
// Test-only bypass for remote evals
29-
if (process.env.NODE_ENV === 'test') {
30-
const bypass = process.env.CODEBUFF_TEST_AUTH_TOKEN
31-
if (bypass && authToken === bypass) {
32-
return {
33-
id: 'test-user',
34-
email: 'evals@test.local',
35-
discord_id: null,
36-
}
37-
}
38-
}
39-
4028
const user = await db
4129
.select({
4230
id: schema.user.id,

0 commit comments

Comments
 (0)