-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ Refactor ] Store TOTP Data in Session (#45)
- Add JSDoc - Generate and Send TOTP - Add tests for the 1st authentication phase - Refactor: Rename function to `generateAndSendTOTP` - Refactor: Rename function to `validateTOTP` - Handle JWT expiration - Remove CRUD operations - Remove unused constants - Add coerce utility - Add `TOTPPayload` structure - Require email for authentication - Add tests for stale magic-link and login attempts - Add test for custom error scenarios - Refactor: Rename variable `totpFieldKey` to `codeFieldKey` - Remove `MagicLinkGenerationOptions` - Refactor: Remove `form` and `request` from `SendTOTPOptions` - Refactor: Remove `code`, `magicLink`, `form`, and `request` from `TOTPVerifyParams` - Switch to Node.js import syntax - Add build step to prepare script - Update `SendTOTPOptions` with `request` and `formData` - Update `TOTPVerifyParams` with `request` and `formData` - Update migration documentation - Update documentation --------- Co-authored-by: Dev XO <[email protected]>
- Loading branch information
Showing
11 changed files
with
4,843 additions
and
1,001 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# Package Managers. | ||
package-lock.json | ||
yarn.lock | ||
pnpm-lock.yaml | ||
pnpm-lock.yml | ||
node_modules | ||
|
||
# Editor Configs. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.