email is removed from form in the payload to avoid duplication. Re-added again later when parsing to avoid breaking changes. If form only had the email, it is fully removed from the payload.
validateSessionMagicLink removed from payload, using the one from the Strategy instance instead.
linkCreationTime now using timestamp instead of ISO string, since it is shorter.
Following https://github.com/pbteja1998/remix-auth-email-link/discussions/33 This is an MR to get the magic link payload smaller, and so shorter magic links. This improves UX and spam score. I intend to create no breaking changes.
What is happening here:
form
in the payload to avoid duplication. Re-added again later when parsing to avoid breaking changes. Ifform
only had the email, it is fully removed from the payload.validateSessionMagicLink
removed from payload, using the one from the Strategy instance instead.linkCreationTime
now using timestamp instead of ISO string, since it is shorter.