async createSecret()

in src/lib/service/custos-service/custos-service-entities/custos-service-entities-secrets-password.js [17:32]


    async createSecret({clientId, description, ownerId, password}) {
        const axiosInstance = await this.custosService.axiosInstance
        const {data: {token}} = await axiosInstance.post(
            `${CustosService.ENDPOINTS.SECRETS}/secret/password`,
            {
                "metadata": {
                    "client_id": clientId,
                    "description": description,
                    "owner_id": ownerId,
                    "password": password
                }
            }
        );
        const entityId = token;
        return entityId;
    }