From cc024bd1d20b7c7128f40571bfcb5d395a1cd064 Mon Sep 17 00:00:00 2001 From: Jaume Alavedra Date: Thu, 17 Oct 2024 19:13:11 +0200 Subject: [PATCH] chore: update version --- ecosystem-sdk/sdk-sample/Dockerfile | 6 ++++++ ecosystem-sdk/sdk-sample/package.json | 2 +- ecosystem-sdk/sdk/package.json | 2 +- ecosystem-wallet/backend/package.json | 2 +- ecosystem-wallet/frontend/package.json | 2 +- ecosystem-wallet/frontend/src/App.tsx | 6 +++++- 6 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ecosystem-sdk/sdk-sample/Dockerfile b/ecosystem-sdk/sdk-sample/Dockerfile index 1cd03c8..1c191bd 100644 --- a/ecosystem-sdk/sdk-sample/Dockerfile +++ b/ecosystem-sdk/sdk-sample/Dockerfile @@ -1,5 +1,11 @@ FROM node:20.18-slim +ARG NEXT_PUBLIC_POLICY_ID +ENV NEXT_PUBLIC_POLICY_ID=$NEXT_PUBLIC_POLICY_ID + +ARG NEXT_PUBLIC_CLIENT_ID +ENV NEXT_PUBLIC_CLIENT_ID=$NEXT_PUBLIC_CLIENT_ID + RUN apt-get update -y && apt-get install -y openssl \ python3 \ make \ diff --git a/ecosystem-sdk/sdk-sample/package.json b/ecosystem-sdk/sdk-sample/package.json index b995aaf..e0ef055 100644 --- a/ecosystem-sdk/sdk-sample/package.json +++ b/ecosystem-sdk/sdk-sample/package.json @@ -1,6 +1,6 @@ { "name": "@examples/wallets-connect-with-nextjs", - "version": "0.0.5", + "version": "0.0.6", "dependencies": { "@rapidfire/id": "^0.0.3", "@tanstack/react-query": "^5.51.11", diff --git a/ecosystem-sdk/sdk/package.json b/ecosystem-sdk/sdk/package.json index 7b1ebcc..af6c9e0 100644 --- a/ecosystem-sdk/sdk/package.json +++ b/ecosystem-sdk/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@rapidfire/id", - "version": "0.0.5", + "version": "0.0.6", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", diff --git a/ecosystem-wallet/backend/package.json b/ecosystem-wallet/backend/package.json index abed1f6..7cc3756 100644 --- a/ecosystem-wallet/backend/package.json +++ b/ecosystem-wallet/backend/package.json @@ -1,6 +1,6 @@ { "name": "ecosystem-backend", - "version": "0.0.5", + "version": "0.0.6", "main": "index.js", "type": "commonjs", "scripts": { diff --git a/ecosystem-wallet/frontend/package.json b/ecosystem-wallet/frontend/package.json index f40ef47..d879c12 100644 --- a/ecosystem-wallet/frontend/package.json +++ b/ecosystem-wallet/frontend/package.json @@ -1,6 +1,6 @@ { "name": "ecosystem-frontend", - "version": "0.0.5", + "version": "0.0.6", "private": true, "dependencies": { "@openfort/ecosystem-js": "latest", diff --git a/ecosystem-wallet/frontend/src/App.tsx b/ecosystem-wallet/frontend/src/App.tsx index 8f4f4e4..d89530a 100644 --- a/ecosystem-wallet/frontend/src/App.tsx +++ b/ecosystem-wallet/frontend/src/App.tsx @@ -32,7 +32,7 @@ import Loading from './Loading'; * @returns session ID */ async function getShieldSession(accessToken:string):Promise { - const response = await fetch(process.env.REACT_APP_BACKEND_URL!, { + const response = await fetch(`${process.env.REACT_APP_BACKEND_URL!}/api/protected-create-encryption-session`, { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -59,6 +59,10 @@ const ProtectedRoute = ({ component, ...args }: any) => { function App() { const nav = useNavigate() + console.log('REACT_APP_OPENFORT_PUBLIC_KEY', process.env.REACT_APP_OPENFORT_PUBLIC_KEY) + console.log('REACT_APP_SHIELD_PUBLIC_KEY', process.env.REACT_APP_SHIELD_PUBLIC_KEY) + console.log('REACT_APP_BACKEND_URL', process.env.REACT_APP_BACKEND_URL) + console.log('REACT_APP_APP_NAME', process.env.REACT_APP_APP_NAME) return (