Skip to content

Commit 50983ce

Browse files
committed
fix(webapp): pin magic-link sessionEmailKey explicitly
1 parent 59a647e commit 50983ce

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/webapp/app/services/emailAuth.server.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ const emailStrategy = new EmailLinkStrategy(
1818
secret,
1919
callbackURL: "/magic",
2020
sessionMagicLinkKey: "triggerdotdev:magiclink",
21+
// Pin explicitly to the library default rather than relying on it: the
22+
// /login/magic loader reads the submitted address via
23+
// session.get("auth:email") to name it on the confirmation screen, so a
24+
// future remix-auth-email-link default change can't silently break that.
25+
sessionEmailKey: "auth:email",
2126
},
2227
async ({
2328
email,

0 commit comments

Comments
 (0)