Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
.DS_Store
.DS_Store
.DS_Store
.env
.env.local
31 changes: 0 additions & 31 deletions apps/client/.env

This file was deleted.

13 changes: 13 additions & 0 deletions apps/client/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
NEXT_PUBLIC_DEV_MODE=dev
NEXT_PUBLIC_BUILD_MODE=production
NEXT_PUBLIC_APP_VERSION=$npm_package_version
NEXT_PUBLIC_API_URL=

NEXT_PUBLIC_ASSET_BASE_URL=https://prium.github.io/aurora

NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=

NEXTAUTH_URL=http://localhost:3001
NEXTAUTH_SECRET=secret

BASEPATH=''
2 changes: 2 additions & 0 deletions apps/client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
.env
.env.local


1 change: 0 additions & 1 deletion apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"axios": "^1.12.2",
"clsx": "^2.1.1",
"dayjs": "^1.11.18",
"firebase": "^12.4.0",
"gsap": "^3.13.0",
"i18next": "^25.6.0",
"i18next-browser-languagedetector": "^8.2.0",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use client';

import ForgotPasswordForm from 'components/sections/authentications/common/ForgotPasswordForm';
import axiosInstance from 'services/axios/axiosInstance';
import { apiEndpoints } from 'routes/paths';

const Page = () => {
const handleSendResetLink = async ({ email }: { email: string }) => {
try {
const res = await axiosInstance.post(apiEndpoints.forgotPassword, { email });
return res.data;
} catch (error: any) {
throw new Error(error.response?.data?.message || 'Failed to send reset link');
}
};

return <ForgotPasswordForm handleSendResetLink={handleSendResetLink} />;
};

export default Page;
7 changes: 0 additions & 7 deletions apps/client/src/app/authentication/default/jwt/2fa/page.tsx

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions apps/client/src/app/authentication/default/jwt/login/page.tsx

This file was deleted.

This file was deleted.

This file was deleted.

29 changes: 29 additions & 0 deletions apps/client/src/app/authentication/default/login/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
'use client';

import { signIn } from 'next-auth/react';
import LoginForm from 'components/sections/authentications/default/LoginForm';
import paths from 'routes/paths';
import { defaultJwtAuthCredentials } from 'config';

const Page = () => {
const handleLogin = async (data: { email: string; password: string }) => {
return await signIn('credentials', {
email: data.email,
password: data.password,
redirect: false,
});
};

return (
<LoginForm
handleLogin={handleLogin}
signUpLink={paths.signup}
forgotPasswordLink={paths.forgotPassword}
socialAuth={false}
rememberDevice={true}
defaultCredential={defaultJwtAuthCredentials}
/>
);
};

export default Page;
19 changes: 19 additions & 0 deletions apps/client/src/app/authentication/default/signup/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use client';

import { signIn } from 'next-auth/react';
import SignupForm from 'components/sections/authentications/default/SignupForm';

const Page = () => {
const handleSignup = async (data: { name: string; email: string; password: string }) => {
return await signIn('signup', {
name: data.name,
email: data.email,
password: data.password,
redirect: false,
});
};

return <SignupForm handleSignup={handleSignup} socialAuth={false} />;
};

export default Page;
21 changes: 0 additions & 21 deletions apps/client/src/components/icons/Auth0Icon.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions apps/client/src/components/icons/FirebaseIcon.tsx

This file was deleted.

45 changes: 0 additions & 45 deletions apps/client/src/components/icons/JwtIcon.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import { useState } from "react";
import { useForm } from "react-hook-form";
import * as yup from "yup";
import CheckMailBoxDialog from "../CheckMailBoxDialog";
import ViewOnlyAlert from "../common/ViewOnlyAlert";

interface ForgotPasswordFormProps {
provider?: "jwt" | "firebase";
handleSendResetLink: ({ email }: { email: string }) => Promise<any>;
}

Expand All @@ -30,7 +28,6 @@ const schema = yup
.required();

const ForgotPasswordForm = ({
provider = "jwt",
handleSendResetLink,
}: ForgotPasswordFormProps) => {
const [linkSent, setLinkSent] = useState(false);
Expand Down Expand Up @@ -86,15 +83,6 @@ const ForgotPasswordForm = ({
p: { xs: 3, sm: 5 },
mb: 5,
}}>
{provider === "firebase" &&
process.env.NEXT_PUBLIC_BUILD_MODE === "production" && (
<Grid size={12} sx={{ mb: 1 }}>
{" "}
<ViewOnlyAlert
docLink={`https://aurora.themewagon.com/documentation/authentication#firebase`}
/>
</Grid>
)}
<Grid size={12}>
<Typography
variant='h4'
Expand Down
Loading
Loading