Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: don't redirect to `signin` page in standalone mode (#9563)
boojack9a5913237b21
diff --git a/frontend/src/grpcweb/middlewares/authInterceptorMiddleware.ts b/frontend/src/grpcweb/middlewares/authInterceptorMiddleware.tsindex c1b1ed8e58..06c428fbad 100644--- a/frontend/src/grpcweb/middlewares/authInterceptorMiddleware.ts+++ b/frontend/src/grpcweb/middlewares/authInterceptorMiddleware.ts@@ -5,7 +5,7 @@ import { useAuthStore } from "@/store";export type IgnoreErrorsOptions = {/**- * If set to true, will NOT show redirect to other pages(e.g., 403).+ * If set to true, will NOT show redirect to other pages(e.g., 403, sign in page).*/silent?: boolean;@@ -32,6 +32,7 @@ export const authInterceptorMiddleware: ClientMiddleware<IgnoreErrorsOptions> =// omit specified errors} else {if (code === Status.UNAUTHENTICATED) {+ if (options.silent) return;// "Kick out" sign in status if access token expires.try {await useAuthStore().logout();