├── .github └── workflows │ ├── ci.yml │ ├── dependecies.yml │ └── security.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .vscode └── settings.json ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── package.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── server ├── .env.example ├── .gitignore ├── __tests__ │ ├── __mocks__ │ │ ├── repositories │ │ │ ├── mockOtpRepository.ts │ │ │ └── mockUserRepository.ts │ │ └── services │ │ │ ├── mockHashService.ts │ │ │ ├── mockMailService.ts │ │ │ ├── mockOAuthService.ts │ │ │ ├── mockTokenService.ts │ │ │ └── mockValidatorService.ts │ └── user │ │ └── auth │ │ ├── OAuthUseCase.test.ts │ │ ├── OtpUseCase.test.ts │ │ ├── ResetPasswordUseCase.test.ts │ │ ├── SigninUseCase.test.ts │ │ └── SignupUseCase.test.ts ├── jest.config.js ├── nodemon.json ├── package.json ├── public │ ├── otpEmailTemplate.html │ └── passwordResetLinkTemplate.html ├── src │ ├── config │ │ ├── connectMongo.ts │ │ ├── index.ts │ │ └── initConfig.ts │ ├── di │ │ ├── controllers.ts │ │ ├── index.ts │ │ ├── middlewares.ts │ │ ├── repositories.ts │ │ ├── services.ts │ │ └── useCases.ts │ ├── domain │ │ ├── entities │ │ │ ├── CustomErrors.ts │ │ │ ├── IOtp.ts │ │ │ └── IUser.ts │ │ └── interfaces │ │ │ ├── repositories │ │ │ ├── IBaseRepository.ts │ │ │ ├── IOtpRepository.ts │ │ │ └── IUserRepository.ts │ │ │ └── services │ │ │ ├── IHashService.ts │ │ │ ├── IMailService.ts │ │ │ ├── IOAuthService.ts │ │ │ ├── ITokenService.ts │ │ │ └── IValidatorService.ts │ ├── index.ts │ ├── infrastructure │ │ ├── models │ │ │ ├── Otp.ts │ │ │ └── User.ts │ │ ├── repositories │ │ │ ├── OtpRepository.ts │ │ │ └── UserRepository.ts │ │ └── services │ │ │ ├── HashService.ts │ │ │ ├── MailService.ts │ │ │ ├── OAuthService.ts │ │ │ ├── TokenService.ts │ │ │ └── ValidatorService.ts │ ├── presentation │ │ ├── controllers │ │ │ ├── admin │ │ │ │ ├── AdminConroller.ts │ │ │ │ └── AuthController.ts │ │ │ └── user │ │ │ │ ├── AuthControllers.ts │ │ │ │ └── ProfileController.ts │ │ ├── middlewares │ │ │ ├── AdminAuthMiddleware.ts │ │ │ ├── ErrorHandler.ts │ │ │ ├── RateLimiterMiddleware.ts │ │ │ └── UserAuthMiddleware.ts │ │ └── routes │ │ │ ├── admin │ │ │ ├── authRoutes.ts │ │ │ ├── index.ts │ │ │ └── userRoutes.ts │ │ │ ├── index.ts │ │ │ └── user │ │ │ ├── authRoutes.ts │ │ │ ├── index.ts │ │ │ └── profileRoutes.ts │ ├── types │ │ └── index.ts │ ├── use_case │ │ ├── admin │ │ │ ├── GetUsersUseCase.ts │ │ │ ├── SigninUseCase.ts │ │ │ └── UpdateUserUseCase.ts │ │ └── user │ │ │ ├── GetProfileUseCase.ts │ │ │ ├── UpdateProfileUseCase.ts │ │ │ └── auth │ │ │ ├── OAuthUseCase.ts │ │ │ ├── OtpUseCase.ts │ │ │ ├── ResetPasswordUseCase.ts │ │ │ ├── SigninUseCase.ts │ │ │ └── SignupUseCase.ts │ └── utils │ │ ├── generateOtp.ts │ │ ├── index.ts │ │ └── logger.ts └── tsconfig.json └── web ├── .env.example ├── .gitignore ├── app ├── (user) │ └── auth │ │ ├── forgot-password │ │ └── page.tsx │ │ ├── layout.tsx │ │ ├── otp-verification │ │ ├── layout.tsx │ │ └── page.tsx │ │ ├── page.tsx │ │ └── signup │ │ └── page.tsx ├── admin │ ├── auth │ │ ├── layout.tsx │ │ └── page.tsx │ ├── layout.tsx │ └── page.tsx ├── layout.tsx ├── metadata.ts ├── not-found.tsx └── page.tsx ├── components.json ├── components ├── LoadingOverlay.tsx ├── admin │ └── UserTable.tsx ├── dialogs │ ├── ForgotPasswordDialog.tsx │ └── LogoutConfirmDialog.tsx ├── forms │ ├── OtpVerificationForm.tsx │ ├── SigninForm.tsx │ ├── SignupForm.tsx │ └── elements │ │ ├── CustomCheckbox.tsx │ │ ├── CustomFileInput.tsx │ │ ├── CustomInput.tsx │ │ ├── CustomRadioGroup.tsx │ │ ├── CustomSelect.tsx │ │ ├── CustomSwitch.tsx │ │ ├── CustomTextArea.tsx │ │ ├── FormFieldWrapper.tsx │ │ ├── MultipleSelector.tsx │ │ ├── OtpInput.tsx │ │ └── SubmitButton.tsx ├── layout │ ├── Navbar.tsx │ ├── QueryProvider.tsx │ ├── ThemeButton.tsx │ └── ThemeProvider.tsx ├── ui │ ├── alert-dialog.tsx │ ├── alert.tsx │ ├── avatar.tsx │ ├── button.tsx │ ├── card.tsx │ ├── checkbox.tsx │ ├── command.tsx │ ├── dialog.tsx │ ├── form.tsx │ ├── input.tsx │ ├── label.tsx │ ├── radio-group.tsx │ ├── select.tsx │ ├── separator.tsx │ ├── skeleton.tsx │ ├── sonner.tsx │ ├── switch.tsx │ ├── tabs.tsx │ ├── textarea.tsx │ └── toggle.tsx └── user │ ├── Profile.tsx │ └── auth │ ├── OAuthButtons.tsx │ ├── OtpVerificationClient.tsx │ ├── SigninClient.tsx │ └── forgot-password │ ├── ForgotPasswordClient.tsx │ ├── InvalidTokenState.tsx │ ├── LoadingState.tsx │ └── ResetPasswordForm.tsx ├── config └── index.ts ├── constants └── index.ts ├── eslint.config.mjs ├── hooks ├── api │ ├── admin │ │ ├── auth │ │ │ ├── useLogout.ts │ │ │ └── useSignin.ts │ │ ├── useGetUsers.ts │ │ ├── useToggleBlock.ts │ │ └── useUpdateUser.ts │ └── user │ │ ├── auth │ │ ├── useForgotPassword.ts │ │ ├── useLogout.ts │ │ ├── useOAuthSignIn.ts │ │ ├── useResendOtp.ts │ │ ├── useResetPassword.ts │ │ ├── useSignin.ts │ │ ├── useSignup.ts │ │ └── useVerifyOtp.ts │ │ ├── useGetProfile.ts │ │ └── useUpdateProfile.ts └── store │ ├── auth │ ├── useAuthAdmin.ts │ ├── useAuthUser.ts │ └── useMailSetter.ts │ ├── useAuthRedirectToast.ts │ └── useLoading.ts ├── lib ├── api │ ├── createApiInstance.ts │ └── index.ts ├── fonts.ts ├── schema.ts └── utils.ts ├── next.config.ts ├── package.json ├── postcss.config.mjs ├── public └── assets │ └── google.svg ├── styles └── globals.css ├── tsconfig.json └── types ├── api ├── DeleteRoutes.ts ├── GetRoutes.ts ├── PatchRoutes.ts ├── PostRoutes.ts ├── PutRoutes.ts └── index.ts ├── form.ts ├── index.ts ├── props.ts └── state.ts /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/dependecies.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/.github/workflows/dependecies.yml -------------------------------------------------------------------------------- /.github/workflows/security.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/.github/workflows/security.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .vscode 3 | dist 4 | .next 5 | pnpm-lock.yaml -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /server/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/.env.example -------------------------------------------------------------------------------- /server/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | .env 3 | logs 4 | dist/ 5 | firebase.json -------------------------------------------------------------------------------- /server/__tests__/__mocks__/repositories/mockOtpRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/__mocks__/repositories/mockOtpRepository.ts -------------------------------------------------------------------------------- /server/__tests__/__mocks__/repositories/mockUserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/__mocks__/repositories/mockUserRepository.ts -------------------------------------------------------------------------------- /server/__tests__/__mocks__/services/mockHashService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/__mocks__/services/mockHashService.ts -------------------------------------------------------------------------------- /server/__tests__/__mocks__/services/mockMailService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/__mocks__/services/mockMailService.ts -------------------------------------------------------------------------------- /server/__tests__/__mocks__/services/mockOAuthService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/__mocks__/services/mockOAuthService.ts -------------------------------------------------------------------------------- /server/__tests__/__mocks__/services/mockTokenService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/__mocks__/services/mockTokenService.ts -------------------------------------------------------------------------------- /server/__tests__/__mocks__/services/mockValidatorService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/__mocks__/services/mockValidatorService.ts -------------------------------------------------------------------------------- /server/__tests__/user/auth/OAuthUseCase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/user/auth/OAuthUseCase.test.ts -------------------------------------------------------------------------------- /server/__tests__/user/auth/OtpUseCase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/user/auth/OtpUseCase.test.ts -------------------------------------------------------------------------------- /server/__tests__/user/auth/ResetPasswordUseCase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/user/auth/ResetPasswordUseCase.test.ts -------------------------------------------------------------------------------- /server/__tests__/user/auth/SigninUseCase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/user/auth/SigninUseCase.test.ts -------------------------------------------------------------------------------- /server/__tests__/user/auth/SignupUseCase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/__tests__/user/auth/SignupUseCase.test.ts -------------------------------------------------------------------------------- /server/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/jest.config.js -------------------------------------------------------------------------------- /server/nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/nodemon.json -------------------------------------------------------------------------------- /server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/package.json -------------------------------------------------------------------------------- /server/public/otpEmailTemplate.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/public/otpEmailTemplate.html -------------------------------------------------------------------------------- /server/public/passwordResetLinkTemplate.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/public/passwordResetLinkTemplate.html -------------------------------------------------------------------------------- /server/src/config/connectMongo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/config/connectMongo.ts -------------------------------------------------------------------------------- /server/src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/config/index.ts -------------------------------------------------------------------------------- /server/src/config/initConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/config/initConfig.ts -------------------------------------------------------------------------------- /server/src/di/controllers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/di/controllers.ts -------------------------------------------------------------------------------- /server/src/di/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/di/index.ts -------------------------------------------------------------------------------- /server/src/di/middlewares.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/di/middlewares.ts -------------------------------------------------------------------------------- /server/src/di/repositories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/di/repositories.ts -------------------------------------------------------------------------------- /server/src/di/services.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/di/services.ts -------------------------------------------------------------------------------- /server/src/di/useCases.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/di/useCases.ts -------------------------------------------------------------------------------- /server/src/domain/entities/CustomErrors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/entities/CustomErrors.ts -------------------------------------------------------------------------------- /server/src/domain/entities/IOtp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/entities/IOtp.ts -------------------------------------------------------------------------------- /server/src/domain/entities/IUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/entities/IUser.ts -------------------------------------------------------------------------------- /server/src/domain/interfaces/repositories/IBaseRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/interfaces/repositories/IBaseRepository.ts -------------------------------------------------------------------------------- /server/src/domain/interfaces/repositories/IOtpRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/interfaces/repositories/IOtpRepository.ts -------------------------------------------------------------------------------- /server/src/domain/interfaces/repositories/IUserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/interfaces/repositories/IUserRepository.ts -------------------------------------------------------------------------------- /server/src/domain/interfaces/services/IHashService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/interfaces/services/IHashService.ts -------------------------------------------------------------------------------- /server/src/domain/interfaces/services/IMailService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/interfaces/services/IMailService.ts -------------------------------------------------------------------------------- /server/src/domain/interfaces/services/IOAuthService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/interfaces/services/IOAuthService.ts -------------------------------------------------------------------------------- /server/src/domain/interfaces/services/ITokenService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/interfaces/services/ITokenService.ts -------------------------------------------------------------------------------- /server/src/domain/interfaces/services/IValidatorService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/domain/interfaces/services/IValidatorService.ts -------------------------------------------------------------------------------- /server/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/index.ts -------------------------------------------------------------------------------- /server/src/infrastructure/models/Otp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/models/Otp.ts -------------------------------------------------------------------------------- /server/src/infrastructure/models/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/models/User.ts -------------------------------------------------------------------------------- /server/src/infrastructure/repositories/OtpRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/repositories/OtpRepository.ts -------------------------------------------------------------------------------- /server/src/infrastructure/repositories/UserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/repositories/UserRepository.ts -------------------------------------------------------------------------------- /server/src/infrastructure/services/HashService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/services/HashService.ts -------------------------------------------------------------------------------- /server/src/infrastructure/services/MailService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/services/MailService.ts -------------------------------------------------------------------------------- /server/src/infrastructure/services/OAuthService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/services/OAuthService.ts -------------------------------------------------------------------------------- /server/src/infrastructure/services/TokenService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/services/TokenService.ts -------------------------------------------------------------------------------- /server/src/infrastructure/services/ValidatorService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/infrastructure/services/ValidatorService.ts -------------------------------------------------------------------------------- /server/src/presentation/controllers/admin/AdminConroller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/controllers/admin/AdminConroller.ts -------------------------------------------------------------------------------- /server/src/presentation/controllers/admin/AuthController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/controllers/admin/AuthController.ts -------------------------------------------------------------------------------- /server/src/presentation/controllers/user/AuthControllers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/controllers/user/AuthControllers.ts -------------------------------------------------------------------------------- /server/src/presentation/controllers/user/ProfileController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/controllers/user/ProfileController.ts -------------------------------------------------------------------------------- /server/src/presentation/middlewares/AdminAuthMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/middlewares/AdminAuthMiddleware.ts -------------------------------------------------------------------------------- /server/src/presentation/middlewares/ErrorHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/middlewares/ErrorHandler.ts -------------------------------------------------------------------------------- /server/src/presentation/middlewares/RateLimiterMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/middlewares/RateLimiterMiddleware.ts -------------------------------------------------------------------------------- /server/src/presentation/middlewares/UserAuthMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/middlewares/UserAuthMiddleware.ts -------------------------------------------------------------------------------- /server/src/presentation/routes/admin/authRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/routes/admin/authRoutes.ts -------------------------------------------------------------------------------- /server/src/presentation/routes/admin/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/routes/admin/index.ts -------------------------------------------------------------------------------- /server/src/presentation/routes/admin/userRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/routes/admin/userRoutes.ts -------------------------------------------------------------------------------- /server/src/presentation/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/routes/index.ts -------------------------------------------------------------------------------- /server/src/presentation/routes/user/authRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/routes/user/authRoutes.ts -------------------------------------------------------------------------------- /server/src/presentation/routes/user/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/routes/user/index.ts -------------------------------------------------------------------------------- /server/src/presentation/routes/user/profileRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/presentation/routes/user/profileRoutes.ts -------------------------------------------------------------------------------- /server/src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/types/index.ts -------------------------------------------------------------------------------- /server/src/use_case/admin/GetUsersUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/admin/GetUsersUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/admin/SigninUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/admin/SigninUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/admin/UpdateUserUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/admin/UpdateUserUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/user/GetProfileUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/user/GetProfileUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/user/UpdateProfileUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/user/UpdateProfileUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/user/auth/OAuthUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/user/auth/OAuthUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/user/auth/OtpUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/user/auth/OtpUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/user/auth/ResetPasswordUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/user/auth/ResetPasswordUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/user/auth/SigninUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/user/auth/SigninUseCase.ts -------------------------------------------------------------------------------- /server/src/use_case/user/auth/SignupUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/use_case/user/auth/SignupUseCase.ts -------------------------------------------------------------------------------- /server/src/utils/generateOtp.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /server/src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/utils/index.ts -------------------------------------------------------------------------------- /server/src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/src/utils/logger.ts -------------------------------------------------------------------------------- /server/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/server/tsconfig.json -------------------------------------------------------------------------------- /web/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/.env.example -------------------------------------------------------------------------------- /web/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/.gitignore -------------------------------------------------------------------------------- /web/app/(user)/auth/forgot-password/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/(user)/auth/forgot-password/page.tsx -------------------------------------------------------------------------------- /web/app/(user)/auth/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/(user)/auth/layout.tsx -------------------------------------------------------------------------------- /web/app/(user)/auth/otp-verification/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/(user)/auth/otp-verification/layout.tsx -------------------------------------------------------------------------------- /web/app/(user)/auth/otp-verification/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/(user)/auth/otp-verification/page.tsx -------------------------------------------------------------------------------- /web/app/(user)/auth/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/(user)/auth/page.tsx -------------------------------------------------------------------------------- /web/app/(user)/auth/signup/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/(user)/auth/signup/page.tsx -------------------------------------------------------------------------------- /web/app/admin/auth/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/admin/auth/layout.tsx -------------------------------------------------------------------------------- /web/app/admin/auth/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/admin/auth/page.tsx -------------------------------------------------------------------------------- /web/app/admin/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/admin/layout.tsx -------------------------------------------------------------------------------- /web/app/admin/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/admin/page.tsx -------------------------------------------------------------------------------- /web/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/layout.tsx -------------------------------------------------------------------------------- /web/app/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/metadata.ts -------------------------------------------------------------------------------- /web/app/not-found.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/not-found.tsx -------------------------------------------------------------------------------- /web/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/app/page.tsx -------------------------------------------------------------------------------- /web/components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components.json -------------------------------------------------------------------------------- /web/components/LoadingOverlay.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/LoadingOverlay.tsx -------------------------------------------------------------------------------- /web/components/admin/UserTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/admin/UserTable.tsx -------------------------------------------------------------------------------- /web/components/dialogs/ForgotPasswordDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/dialogs/ForgotPasswordDialog.tsx -------------------------------------------------------------------------------- /web/components/dialogs/LogoutConfirmDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/dialogs/LogoutConfirmDialog.tsx -------------------------------------------------------------------------------- /web/components/forms/OtpVerificationForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/OtpVerificationForm.tsx -------------------------------------------------------------------------------- /web/components/forms/SigninForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/SigninForm.tsx -------------------------------------------------------------------------------- /web/components/forms/SignupForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/SignupForm.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/CustomCheckbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/CustomCheckbox.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/CustomFileInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/CustomFileInput.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/CustomInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/CustomInput.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/CustomRadioGroup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/CustomRadioGroup.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/CustomSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/CustomSelect.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/CustomSwitch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/CustomSwitch.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/CustomTextArea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/CustomTextArea.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/FormFieldWrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/FormFieldWrapper.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/MultipleSelector.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/MultipleSelector.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/OtpInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/OtpInput.tsx -------------------------------------------------------------------------------- /web/components/forms/elements/SubmitButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/forms/elements/SubmitButton.tsx -------------------------------------------------------------------------------- /web/components/layout/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/layout/Navbar.tsx -------------------------------------------------------------------------------- /web/components/layout/QueryProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/layout/QueryProvider.tsx -------------------------------------------------------------------------------- /web/components/layout/ThemeButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/layout/ThemeButton.tsx -------------------------------------------------------------------------------- /web/components/layout/ThemeProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/layout/ThemeProvider.tsx -------------------------------------------------------------------------------- /web/components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /web/components/ui/alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/alert.tsx -------------------------------------------------------------------------------- /web/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/avatar.tsx -------------------------------------------------------------------------------- /web/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/button.tsx -------------------------------------------------------------------------------- /web/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/card.tsx -------------------------------------------------------------------------------- /web/components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /web/components/ui/command.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/command.tsx -------------------------------------------------------------------------------- /web/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/dialog.tsx -------------------------------------------------------------------------------- /web/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/form.tsx -------------------------------------------------------------------------------- /web/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/input.tsx -------------------------------------------------------------------------------- /web/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/label.tsx -------------------------------------------------------------------------------- /web/components/ui/radio-group.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/radio-group.tsx -------------------------------------------------------------------------------- /web/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/select.tsx -------------------------------------------------------------------------------- /web/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/separator.tsx -------------------------------------------------------------------------------- /web/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /web/components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/sonner.tsx -------------------------------------------------------------------------------- /web/components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/switch.tsx -------------------------------------------------------------------------------- /web/components/ui/tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/tabs.tsx -------------------------------------------------------------------------------- /web/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/textarea.tsx -------------------------------------------------------------------------------- /web/components/ui/toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/ui/toggle.tsx -------------------------------------------------------------------------------- /web/components/user/Profile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/user/Profile.tsx -------------------------------------------------------------------------------- /web/components/user/auth/OAuthButtons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/user/auth/OAuthButtons.tsx -------------------------------------------------------------------------------- /web/components/user/auth/OtpVerificationClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/user/auth/OtpVerificationClient.tsx -------------------------------------------------------------------------------- /web/components/user/auth/SigninClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/user/auth/SigninClient.tsx -------------------------------------------------------------------------------- /web/components/user/auth/forgot-password/ForgotPasswordClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/user/auth/forgot-password/ForgotPasswordClient.tsx -------------------------------------------------------------------------------- /web/components/user/auth/forgot-password/InvalidTokenState.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/user/auth/forgot-password/InvalidTokenState.tsx -------------------------------------------------------------------------------- /web/components/user/auth/forgot-password/LoadingState.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/user/auth/forgot-password/LoadingState.tsx -------------------------------------------------------------------------------- /web/components/user/auth/forgot-password/ResetPasswordForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/components/user/auth/forgot-password/ResetPasswordForm.tsx -------------------------------------------------------------------------------- /web/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/config/index.ts -------------------------------------------------------------------------------- /web/constants/index.ts: -------------------------------------------------------------------------------- 1 | export const APP_NAME = "Auth Template"; 2 | -------------------------------------------------------------------------------- /web/eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/eslint.config.mjs -------------------------------------------------------------------------------- /web/hooks/api/admin/auth/useLogout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/admin/auth/useLogout.ts -------------------------------------------------------------------------------- /web/hooks/api/admin/auth/useSignin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/admin/auth/useSignin.ts -------------------------------------------------------------------------------- /web/hooks/api/admin/useGetUsers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/admin/useGetUsers.ts -------------------------------------------------------------------------------- /web/hooks/api/admin/useToggleBlock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/admin/useToggleBlock.ts -------------------------------------------------------------------------------- /web/hooks/api/admin/useUpdateUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/admin/useUpdateUser.ts -------------------------------------------------------------------------------- /web/hooks/api/user/auth/useForgotPassword.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/auth/useForgotPassword.ts -------------------------------------------------------------------------------- /web/hooks/api/user/auth/useLogout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/auth/useLogout.ts -------------------------------------------------------------------------------- /web/hooks/api/user/auth/useOAuthSignIn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/auth/useOAuthSignIn.ts -------------------------------------------------------------------------------- /web/hooks/api/user/auth/useResendOtp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/auth/useResendOtp.ts -------------------------------------------------------------------------------- /web/hooks/api/user/auth/useResetPassword.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/auth/useResetPassword.ts -------------------------------------------------------------------------------- /web/hooks/api/user/auth/useSignin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/auth/useSignin.ts -------------------------------------------------------------------------------- /web/hooks/api/user/auth/useSignup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/auth/useSignup.ts -------------------------------------------------------------------------------- /web/hooks/api/user/auth/useVerifyOtp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/auth/useVerifyOtp.ts -------------------------------------------------------------------------------- /web/hooks/api/user/useGetProfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/useGetProfile.ts -------------------------------------------------------------------------------- /web/hooks/api/user/useUpdateProfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/api/user/useUpdateProfile.ts -------------------------------------------------------------------------------- /web/hooks/store/auth/useAuthAdmin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/store/auth/useAuthAdmin.ts -------------------------------------------------------------------------------- /web/hooks/store/auth/useAuthUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/store/auth/useAuthUser.ts -------------------------------------------------------------------------------- /web/hooks/store/auth/useMailSetter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/store/auth/useMailSetter.ts -------------------------------------------------------------------------------- /web/hooks/store/useAuthRedirectToast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/store/useAuthRedirectToast.ts -------------------------------------------------------------------------------- /web/hooks/store/useLoading.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/hooks/store/useLoading.ts -------------------------------------------------------------------------------- /web/lib/api/createApiInstance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/lib/api/createApiInstance.ts -------------------------------------------------------------------------------- /web/lib/api/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/lib/api/index.ts -------------------------------------------------------------------------------- /web/lib/fonts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/lib/fonts.ts -------------------------------------------------------------------------------- /web/lib/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/lib/schema.ts -------------------------------------------------------------------------------- /web/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/lib/utils.ts -------------------------------------------------------------------------------- /web/next.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/next.config.ts -------------------------------------------------------------------------------- /web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/package.json -------------------------------------------------------------------------------- /web/postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/postcss.config.mjs -------------------------------------------------------------------------------- /web/public/assets/google.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/public/assets/google.svg -------------------------------------------------------------------------------- /web/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/styles/globals.css -------------------------------------------------------------------------------- /web/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/tsconfig.json -------------------------------------------------------------------------------- /web/types/api/DeleteRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/api/DeleteRoutes.ts -------------------------------------------------------------------------------- /web/types/api/GetRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/api/GetRoutes.ts -------------------------------------------------------------------------------- /web/types/api/PatchRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/api/PatchRoutes.ts -------------------------------------------------------------------------------- /web/types/api/PostRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/api/PostRoutes.ts -------------------------------------------------------------------------------- /web/types/api/PutRoutes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/api/PutRoutes.ts -------------------------------------------------------------------------------- /web/types/api/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/api/index.ts -------------------------------------------------------------------------------- /web/types/form.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/form.ts -------------------------------------------------------------------------------- /web/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/index.ts -------------------------------------------------------------------------------- /web/types/props.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/props.ts -------------------------------------------------------------------------------- /web/types/state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinanptm/clean-auth-template/HEAD/web/types/state.ts --------------------------------------------------------------------------------