snowballtools-base/packages/frontend/src
Vivian Phung b261e7e436
Feat: Access Code Authentication Flow (#211)
## What changed?

This Pull Request introduces an access code validation feature to the authentication process. Changes encompass backend route for access code validation, new frontend components for handling access code input, and integration of the access code verification in the signup flow.

### Backend:
- Added POST `/accesscode` route in `auth.ts` for validating access codes.

### Frontend:
- Created `AccessCode` component for access code input and validation.
- Added `AccessSignUp` component that integrates access code verification before signup.
- Updated `SignUp` component to check for valid access code on mount.
- Modified `SnowballAuth` to use new `AccessSignUp` instead of `SignUp`.
- Added `verifyAccessCode` utility function for code verification API call.

## How to test?
1. Run the backend and frontend projects.
2. Navigate to the signup page. You should be prompted to enter an access code.
3. Enter the code `444444` and proceed. Any other code should display an error message.
4. Verify that valid access code routes to the signup component.

## Why make this change?

This change improves authentication by adding an extra layer of security through access code verification.
2024-06-21 21:10:31 -04:00
..
assets Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
components Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
context Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
layouts format prettier 2024-05-09 16:18:52 -04:00
pages Feat: Access Code Authentication Flow (#211) 2024-06-21 21:10:31 -04:00
stories [3/n][Storybook] Settings - Delete Project Dialog (#76) 2024-05-16 20:45:32 -04:00
types GeneralTabPanel cleanup 2024-05-14 19:36:50 +00:00
utils Feat: Access Code Authentication Flow (#211) 2024-06-21 21:10:31 -04:00
App.test.tsx Lint using tsc; fix type errors 2024-04-11 21:49:14 -05:00
App.tsx Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
constants.ts Add project create template for image upload PWA (#109) 2024-02-26 17:54:35 +05:30
index.css format prettier 2024-05-09 16:18:52 -04:00
index.tsx Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
logo.svg Restore https://github.com/snowball-tools/snowballtools-base/pull/103 (#106) 2024-02-23 16:09:45 -06:00
react-app-env.d.ts Create react app with tailwind, typescript, eslint and prettier (#4) 2023-12-08 10:50:55 +05:30
reportWebVitals.ts Create react app with tailwind, typescript, eslint and prettier (#4) 2023-12-08 10:50:55 +05:30
setupTests.ts Create react app with tailwind, typescript, eslint and prettier (#4) 2023-12-08 10:50:55 +05:30