We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7e07d6 commit 5feb938Copy full SHA for 5feb938
1 file changed
packages/frontend/context/auth-context.tsx
@@ -70,7 +70,7 @@ function getInitialState(): AuthStateWithInit {
70
// Playwright test injection: addInitScript sets __pw_access_token before
71
// any page scripts run so we can inject the token directly, bypassing the
72
// silent-refresh flow that depends on the refresh cookie.
73
- const win = window as Record<string, unknown>;
+ const win = window as unknown as Record<string, unknown>;
74
const pwToken = typeof win['__pw_access_token'] === 'string'
75
? (win['__pw_access_token'] as string)
76
: null;
0 commit comments