We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7292fa commit 54a4700Copy full SHA for 54a4700
1 file changed
backend/src/websockets/auth.ts
@@ -25,18 +25,6 @@ export async function getUserIdFromAuthToken(
25
export async function getUserInfoFromAuthToken(
26
authToken: string,
27
): 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
-
40
const user = await db
41
.select({
42
id: schema.user.id,
0 commit comments