Skip to content

Commit 952cb9f

Browse files
authored
Merge pull request #6 from hyperninjas/5-remove-unnecessary-auth-system-from-aurora
chore(client): remove Firebase and JWT authentication
2 parents 54cf8f2 + ac6e402 commit 952cb9f

File tree

42 files changed

+134
-1642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+134
-1642
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ node_modules
22
.DS_Store
33
.DS_Store
44
.DS_Store
5+
.env
6+
.env.local

apps/client/.env

Lines changed: 0 additions & 31 deletions
This file was deleted.

apps/client/.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
NEXT_PUBLIC_DEV_MODE=dev
2+
NEXT_PUBLIC_BUILD_MODE=production
3+
NEXT_PUBLIC_APP_VERSION=$npm_package_version
4+
NEXT_PUBLIC_API_URL=
5+
6+
NEXT_PUBLIC_ASSET_BASE_URL=https://prium.github.io/aurora
7+
8+
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=
9+
10+
NEXTAUTH_URL=http://localhost:3001
11+
NEXTAUTH_SECRET=secret
12+
13+
BASEPATH=''

apps/client/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ yarn-error.log*
3636
# typescript
3737
*.tsbuildinfo
3838
next-env.d.ts
39+
.env
40+
.env.local
3941

4042

apps/client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"axios": "^1.12.2",
3737
"clsx": "^2.1.1",
3838
"dayjs": "^1.11.18",
39-
"firebase": "^12.4.0",
4039
"gsap": "^3.13.0",
4140
"i18next": "^25.6.0",
4241
"i18next-browser-languagedetector": "^8.2.0",

apps/client/src/app/authentication/default/auth0/login/page.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

apps/client/src/app/authentication/default/firebase/forgot-password/page.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

apps/client/src/app/authentication/default/firebase/login/page.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

apps/client/src/app/authentication/default/firebase/sign-up/page.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'use client';
2+
3+
import ForgotPasswordForm from 'components/sections/authentications/common/ForgotPasswordForm';
4+
import axiosInstance from 'services/axios/axiosInstance';
5+
import { apiEndpoints } from 'routes/paths';
6+
7+
const Page = () => {
8+
const handleSendResetLink = async ({ email }: { email: string }) => {
9+
try {
10+
const res = await axiosInstance.post(apiEndpoints.forgotPassword, { email });
11+
return res.data;
12+
} catch (error: any) {
13+
throw new Error(error.response?.data?.message || 'Failed to send reset link');
14+
}
15+
};
16+
17+
return <ForgotPasswordForm handleSendResetLink={handleSendResetLink} />;
18+
};
19+
20+
export default Page;

0 commit comments

Comments
 (0)