Skip to content

Commit 2ea4e7e

Browse files
committed
fix: lint errors in auth and accounts files
1 parent f66e0e7 commit 2ea4e7e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/server/auth/device-flow.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Tests for OAuth device flow state management.
33
*/
4-
import { afterEach, beforeEach, describe, expect, test } from "bun:test";
4+
import { afterEach, describe, expect, test } from "bun:test";
55
import {
66
authorizeDevice,
77
checkPollRateLimit,
@@ -199,7 +199,7 @@ describe("device-flow", () => {
199199
test("removes expired states", async () => {
200200
// Create a state
201201
const auth = createDeviceAuthorization("google");
202-
const initialCount = getActiveDeviceCount();
202+
const _initialCount = getActiveDeviceCount();
203203

204204
// Manually expire it by modifying the state
205205
const state = getDeviceStateByDeviceCode(auth.deviceCode);

packages/server/auth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
* OAuth authentication module exports.
33
*/
44

5-
export * from "./types";
65
export * from "./device-flow";
76
export * from "./providers";
7+
export * from "./types";

packages/server/handlers/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import type { AccountsDB } from "@memory-engine/accounts";
1313
import {
1414
authorizeDevice,
15-
cleanupDeviceState,
1615
checkPollRateLimit,
16+
cleanupDeviceState,
1717
createDeviceAuthorization,
1818
getDeviceStateByDeviceCode,
1919
getDeviceStateByOAuthState,

packages/server/rpc/accounts/invitation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* - invitation.revoke: Revoke a pending invitation
88
* - invitation.accept: Accept an invitation (adds caller to org)
99
*/
10-
import { AccountsError, type Invitation } from "@memory-engine/accounts";
10+
import type { Invitation } from "@memory-engine/accounts";
1111
import { AppError } from "../errors";
1212
import { buildRegistry } from "../registry";
1313
import type { HandlerContext } from "../types";

0 commit comments

Comments
 (0)