https://supertokens.com/ logo
Title
b

bobs_ramen

11/30/2022, 9:26 PM
Hi there, needing some help with emails! I customised the email template for email verification in node.js and I'm trying to add an extra query string to the emailVerifyLink in my backend config. I need to get the value of this query string from the current url. I see that there is an express request available in the userContext._default object via the emailDelivery.service.override.getContent function input. Is this the best place to get the query string? And if so how would I do it? Thanks!!
looks like I can get the referrer url with userContext._default.request.getHeaderValue('referer') . Does that sound like the best way?
r

rp

12/01/2022, 3:50 AM
Yea! That works!!