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: use `authServiceClient` api in authorization (#4263)
boojack1a718fd9b500
diff --git a/frontend/src/store/modules/auth.ts b/frontend/src/store/modules/auth.tsindex c89afe1670..ca49c46891 100644--- a/frontend/src/store/modules/auth.ts+++ b/frontend/src/store/modules/auth.ts@@ -16,6 +16,7 @@ import {BytebaseLoginInfo,} from "@/types";import { getIntCookie } from "@/utils";+import { authServiceClient } from "@/grpcweb";import { usePrincipalStore } from "./principal";function convert(user: ResourceObject): Principal {@@ -94,10 +95,12 @@ export const useAuthStore = defineStore("auth", {return unknownPrincipal;},async signup(signupInfo: SignupInfo) {- await axios.post("/v1/users", {- email: signupInfo.email,- title: signupInfo.name,- password: signupInfo.password,+ await authServiceClient.createUser({+ user: {+ email: signupInfo.email,+ title: signupInfo.name,+ password: signupInfo.password,+ },});await axios.post("/v1/auth/login", {email: signupInfo.email,