diff --git a/backend/package-lock.json b/backend/package-lock.json
index 36b47ad..11ec1c1 100644
--- a/backend/package-lock.json
+++ b/backend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "backend",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "backend",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"dependencies": {
"@apollo/client": "3.11.8",
"@apollo/federation": "^0.38.1",
diff --git a/backend/package.json b/backend/package.json
index dc162f6..d274751 100644
--- a/backend/package.json
+++ b/backend/package.json
@@ -1,6 +1,6 @@
{
"name": "backend",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"main": "dist/server.js",
"scripts": {
"build": "rm -rf dist/ && npx tsc && npm run copy-graphql",
diff --git a/docker-compose.yml b/docker-compose.yml
index 6faeacb..4af717d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -12,7 +12,7 @@ services:
REACT_APP_FRONTEND_REQUIRE_AUTH: true
container_name: instant-mock
environment:
- REQUIRE_AUTH: true
+ BACKEND_REQUIRE_AUTH: true
PORT: "${BACKEND_PORT:-3033}"
NODE_ENV: "production"
HOST: "0.0.0.0"
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 46bfbdc..9975667 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "frontend",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "frontend",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"dependencies": {
"@apollo/explorer": "^3.7.0",
"@apollo/sandbox": "^2.6.0",
diff --git a/frontend/package.json b/frontend/package.json
index 822c555..7011480 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,6 +1,6 @@
{
"name": "frontend",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"private": true,
"dependencies": {
"@apollo/explorer": "^3.7.0",
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 7c63e2d..d876a59 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -1,5 +1,6 @@
import {BrowserRouter as Router, Route, Routes} from 'react-router-dom';
import SuperTokens, {SuperTokensWrapper} from 'supertokens-auth-react';
+import {SessionAuth} from 'supertokens-auth-react/recipe/session';
import CallbackHandler from './CallbackHandler';
import Home from './components/ui/home';
import Login from './components/ui/login';
@@ -13,16 +14,19 @@ if (config.requireAuth) {
}
function AppRoutes() {
+ const protectedElement = (element: JSX.Element) =>
+ config.requireAuth ? {element} : element;
+
return (
}
/>
- } />
- } />
- } />
+ } />
+ )} />
+ )} />
} />
diff --git a/helm/Chart.yaml b/helm/Chart.yaml
index a70c1c6..5a37518 100644
--- a/helm/Chart.yaml
+++ b/helm/Chart.yaml
@@ -2,4 +2,4 @@ apiVersion: v2
name: instantmock
description: A Helm chart for deploying InstantMock
version: 0.2.0
-appVersion: "1.0.0-beta.4"
+appVersion: "1.0.0-beta.4.1"
diff --git a/helm/values.yaml b/helm/values.yaml
index 871641d..2b81248 100644
--- a/helm/values.yaml
+++ b/helm/values.yaml
@@ -1,7 +1,7 @@
replicaCount: 1
image:
repository: xolvio/instant-mock
- tag: 1.0.0-beta.4
+ tag: 1.0.0-beta.4.1
pullPolicy: Always
service:
type: ClusterIP
diff --git a/package-lock.json b/package-lock.json
index 8f1ccb2..36ee0db 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "instant-mock",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "instant-mock",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"license": "ISC",
"devDependencies": {
"@types/jest": "^29.5.14",
diff --git a/package.json b/package.json
index a3345ac..3b05986 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "instant-mock",
- "version": "1.0.0-beta.4",
+ "version": "1.0.0-beta.4.1",
"description": "![instant-mock-screen-cap-final](https://github.com/user-attachments/assets/de0f50d4-5a71-4e5a-b479-37c6cfa0481d)",
"main": "index.js",
"module": "true",