Skip to content

Commit 5feb938

Browse files
committed
fix(frontend): cast window through unknown to satisfy TypeScript
1 parent a7e07d6 commit 5feb938

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/frontend/context/auth-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function getInitialState(): AuthStateWithInit {
7070
// Playwright test injection: addInitScript sets __pw_access_token before
7171
// any page scripts run so we can inject the token directly, bypassing the
7272
// silent-refresh flow that depends on the refresh cookie.
73-
const win = window as Record<string, unknown>;
73+
const win = window as unknown as Record<string, unknown>;
7474
const pwToken = typeof win['__pw_access_token'] === 'string'
7575
? (win['__pw_access_token'] as string)
7676
: null;

0 commit comments

Comments
 (0)