v1.4.1
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
hostUrlis not provided.
Chores 👷♂️
- Minor test name rearrangement.
- Remove
getHostUrland its respective tests, along withHOSTconstant 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!