Hi, we are converting our web to app with capacito...
# support-questions-legacy
e
Hi, we are converting our web to app with capacitor. We have problems with authentication. The first problem is that we do e-mail sigin our current implementation:
Copy code
js
      createAndSendCustomEmail: async ({ email, urlWithLinkCode }) => {

        try {
          await sendEmail({
            to: email,
            emailMarkup: emailMarkup({ url: urlWithLinkCode! }),
            subject: '...',
          })
        } catch (err) {
          logError(err)
        }
      },
the urlWithLinkCode is generated with our backend config, but the domain is our web domain and we wanna link it to our app domain? My idea was to get the
req.original.headers.origin
so we can see where the request is comming from and swap the url. How to get access to the
request
from userContext?