requested changes

This commit is contained in:
Daniel Hougaard
2025-07-11 13:08:09 +04:00
parent 6ce2438827
commit 3d84de350a
3 changed files with 1 additions and 10 deletions

View File

@@ -66,7 +66,6 @@ export const useDeleteCmek = () => {
export const useCmekEncrypt = () => {
return useMutation({
mutationFn: async ({ keyId, plaintext, isBase64Encoded }: TCmekEncrypt) => {
console.log("CALLING CMEK ENCRYPT");
const { data } = await apiRequest.post<TCmekEncryptResponse>(
`/api/v1/kms/keys/${keyId}/encrypt`,
{

View File

@@ -49,15 +49,6 @@ export const SignUpPage = () => {
// avoid multi submission
if (isSubmitting) return;
try {
console.log(
"Creating admin user...",
JSON.stringify({
email,
password,
fipsEnabled: config.fipsEnabled
})
);
const { privateKey, ...userPass } = await generateUserPassKey(
email,
password,

View File

@@ -95,6 +95,7 @@ export const UserInfoSSOStep = ({
if (!errorCheck) {
// Generate a random pair of a public and a private key
const { publicKey, privateKey } = await generateKeyPair(config.fipsEnabled);
localStorage.setItem("PRIVATE_KEY", privateKey);
client.init(
{