snowballtools-base/packages/backend
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
..
environments ignore backend env file and readme 2024-02-26 17:33:44 -05:00
src Feat: Access Code Authentication Flow (#211) 2024-06-21 21:10:31 -04:00
test Merge branch 'ng-check-deployment-removal-record' 2024-05-22 10:41:37 -04:00
.eslintignore Backend package with db models (#43) 2024-01-16 13:40:14 +05:30
.eslintrc.json Merge branch 'main' of https://github.com/snowball-tools/snowballtools-base into andrehadianto/design-system-components 2024-02-22 12:45:17 +07:00
.gitignore ignore backend env file and readme 2024-02-26 17:33:44 -05:00
.node-version Switch from cra to vite 2024-04-11 21:48:58 -05:00
.prettierignore Backend package with db models (#43) 2024-01-16 13:40:14 +05:30
.prettierrc.json Backend package with db models (#43) 2024-01-16 13:40:14 +05:30
package.json Support async express handlers 2024-06-19 22:59:20 -05:00
README.md Backend package with db models (#43) 2024-01-16 13:40:14 +05:30
tsconfig.json Backend package with db models (#43) 2024-01-16 13:40:14 +05:30

Backend for Snowball Tools