feat(web): generated OpenAPI types + typed openapi-fetch client with 401 redirect
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/** Hard-navigate to login. Isolated so it can be spied/mocked in tests and swapped
|
||||
* for a router navigation if needed. */
|
||||
export function redirectToLogin(): void {
|
||||
if (window.location.pathname !== "/login") {
|
||||
window.location.assign("/login");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user