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
@@ -66,7 +66,6 @@ export const useDeleteCmek = () => {
export const useCmekEncrypt = () => { export const useCmekEncrypt = () => {
return useMutation({ return useMutation({
mutationFn: async ({ keyId, plaintext, isBase64Encoded }: TCmekEncrypt) => { mutationFn: async ({ keyId, plaintext, isBase64Encoded }: TCmekEncrypt) => {
console.log("CALLING CMEK ENCRYPT");
const { data } = await apiRequest.post<TCmekEncryptResponse>( const { data } = await apiRequest.post<TCmekEncryptResponse>(
`/api/v1/kms/keys/${keyId}/encrypt`, `/api/v1/kms/keys/${keyId}/encrypt`,
{ {
@@ -49,15 +49,6 @@ export const SignUpPage = () => {
// avoid multi submission // avoid multi submission
if (isSubmitting) return; if (isSubmitting) return;
try { try {
console.log(
"Creating admin user...",
JSON.stringify({
email,
password,
fipsEnabled: config.fipsEnabled
})
);
const { privateKey, ...userPass } = await generateUserPassKey( const { privateKey, ...userPass } = await generateUserPassKey(
email, email,
password, password,
@@ -95,6 +95,7 @@ export const UserInfoSSOStep = ({
if (!errorCheck) { if (!errorCheck) {
// Generate a random pair of a public and a private key // Generate a random pair of a public and a private key
const { publicKey, privateKey } = await generateKeyPair(config.fipsEnabled); const { publicKey, privateKey } = await generateKeyPair(config.fipsEnabled);
localStorage.setItem("PRIVATE_KEY", privateKey);
client.init( client.init(
{ {