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
hostUrl
is not provided.
Chores 👷♂️
- Minor test name rearrangement.
- Remove
getHostUrl
and its respective tests, along withHOST
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!