Skip to content

Releases: dev-xo/remix-auth-totp

v3.4.2

10 Sep 08:51
f38646d
Compare
Choose a tag to compare

What's Changed

  • Replace Buffer with equivalent Uint8Array and crypto with Web Crypto by @bitofbreeze in #74

New Contributors

Full Changelog: v3.4.1...v3.4.2

v3.4.1

29 Aug 20:44
d3fe144
Compare
Choose a tag to compare

What's Changed

  • [ Fix ] Node v20 - Migrate to base32Encode by @kldeb in #70

New Contributors

  • @kldeb made their first contribution in #70

Full Changelog: v3.4.0...v3.4.1

v3.4.0

02 Jul 07:48
e7505a6
Compare
Choose a tag to compare

What's Changed

  • [ Feat ] Add error for magic link in another Browser Instance by @AndrewJudson in #67

New Contributors

Full Changelog: v3.3.0...v3.4.0

v3.3.0

10 May 19:09
f0d653d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.2.0...v3.3.0

v3.2.0

24 Apr 22:48
Compare
Choose a tag to compare

What's Changed

This release is focused on bringing enhanced security improvements.

A quick summary of the changes and updates applied:

  • Improved security through the use of JWE encryption for hashing algorithms.
  • Expanded character set and updated default hashing algorithm to SHA256.
  • Removed the default TOTP generation secret, which was never used in practice.
  • Implemented various refactoring efforts to improve code maintainability and readability.
  • Older versions below v3.2.0 have been deprecated.

Example Templates have also been updated reflecting these new changes.


Huge thanks to @ryan0x44 who let us know about a critical security issue this release has fixed. And as always, a million thanks to @mw10013 for the time invested and the effort put into the library itself.

Full Changelog: v3.1.0...v3.2.0

v3.1.0

19 Apr 23:29
Compare
Choose a tag to compare

What's Changed

  • feat: Support passing AppLoadContext as context to sendTOTP and verify by @ryan0x44 in #53
  • docs: Fix maxAge unit from milliseconds to seconds. by @lean-dev in #51
  • docs: Minor documentation updates.

New Contributors

Full Changelog: v3.0.0...v3.1.0

v3.0.0

24 Feb 01:01
Compare
Choose a tag to compare

What's Changed

Remix Auth TOTP v3 is here! 🎉

This major release centers on eliminating the reliance on the database and simplifying the overall Strategy. Learn more about it from the official PR: #45

⭐ Summary

  • Add coerce utility
  • Add TOTPPayload structure
  • Add tests for the 1st authentication phase
  • Add tests for stale magic-link and login attempts
  • Add test for custom error scenarios
  • Refactor: Rename function to generateAndSendTOTP
  • Refactor: Rename function to validateTOTP
  • Refactor: Rename variable totpFieldKey to codeFieldKey
  • Refactor: Remove CRUD operations
  • Refactor: Remove unused constants
  • Refactor: Remove MagicLinkGenerationOptions
  • Refactor: Remove form and request from SendTOTPOptions
  • Refactor: Remove code, magicLink, form, and request from TOTPVerifyParams
  • Update SendTOTPOptions with request and formData
  • Update TOTPVerifyParams with request and formData
  • Update documentation
  • Update dependencies
  • Bump module version to v3.0.0

Special thanks to @mw10013 for taking responsibility of the entire release, including implementation, tests, migration documents, and all the care and effort put into it! 🙏

That's all for this release. Happy coding, folks!

v2.0.0

25 Dec 05:24
Compare
Choose a tag to compare

What's Changed

Remix Auth TOTP v2 is here! 🎄

This major release focuses on splitting and introducing key improvements, enhancing both functionality and simplicity for developers and maintainers. You can learn more about it from the following PR: #37

⭐ Features

  • Introduced TOTPData and CRUD interfaces, laying a solid foundation for more structured and efficient TOTP operations.

🧯 Refactor

  • Split handleTOTP: We've divided handleTOTP into two distinct functions: readTOTP and updateTOTP.
  • Simplified expiresAt: We've removed the setting of expiresAt from handleTOTP. Now, expiresAt is only relevant at the time of creation, reducing complexity and potential errors.
  • Removed storeTOTP: Simplifying the overall codebase.
  • Removed sendTOTP wrapper: In our pursuit of simplicity, the sendTOTP wrapper wasn't adding much value to the overall codebase.

👷‍♂️ Chores

  • Added Migration Documentation: A new document has been added to assist with v1 to v2 migrations.
  • Updated Documentation: Reflecting the recent changes.
  • Updated Tests: Ensuring the robustness and reliability of the recent changes.
  • Updated Dependencies.
  • Bumped module version to v2.0.0.

Special thanks to @mw10013 for taking responsibility for the entire release, including implementation, tests, migration documents, and all the care and effort put into it!

Merry Christmas, folks!

v1.4.1

17 Dec 18:57
Compare
Choose a tag to compare

What's Changed

Implemented a solution for generating magic links using the request's origin instead of the host in the request headers when hostUrl is not provided. This addresses issues in environments like Cloudflare local development (wrangler/miniflare), ensuring the correct cookies are used. See #29 for more details.

Refactor 🛠️

  • Use request origin for magic link if hostUrl is not provided.

Chores 👷‍♂️

  • Minor test name rearrangement.
  • Remove getHostUrl and its respective tests, along with HOST constant and its calls in test headers.
  • Bumped module version to v1.4.1.

Special thanks to @mw10013 for issuing this and for taking the time to look into it!

That's all for this release. Happy coding, folks!

v1.4.0

16 Dec 19:14
Compare
Choose a tag to compare

What's Changed

Introducing Cloudflare Support! 🎉

This has been achieved this by switching from jsonwebtoken library to jose, enhancing our support for JSON Web Tokens (JWT) - Issued #28

Refactor 🛠️

  • Replaced jsonwebtoken with jose, adapting the codebase accordingly - #28
  • Updated and adapted tests to align with the new library.

Chores 👷‍♂️

  • Updated dependencies.
  • Formatted the repository.
  • Bumped module version to v1.4.0.

Special thanks to @mw10013 for issuing this and for taking the time to test the codebase updates.

That's all for this release. Happy coding, folks!