snowballtools-base/packages/frontend/src/utils
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
..
accessCode.ts Feat: Access Code Authentication Flow (#211) 2024-06-21 21:10:31 -04:00
classnames.ts 🔧 chore: implement classnames utils 2024-02-21 15:43:09 +07:00
cloneElement.tsx Lint using tsc; fix type errors 2024-04-11 21:49:14 -05:00
cloneIcon.tsx ️ feat: create cloneIcon util function 2024-02-19 21:16:17 +07:00
constants.ts Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
format.ts Set authority for record name from backend config (#104) 2024-02-23 14:47:29 +05:30
geInitials.ts [T-4902: feat] Update project card (#126) 2024-02-27 21:16:38 +07:00
log-error.ts Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
siwe.ts Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
time.ts Create new deployment on changing preview deployment to production (#61) 2024-02-08 14:59:19 +05:30
turnkey-frontend.ts Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00
use-snowball.ts Refactor: Env to utils/constants (#210) 2024-06-21 21:07:41 -04:00