Calling server functions without authenticating

I’m implementing a password reset function on the server for email address logins. It needs to be called before the user has authenticated, is it possible to create a non-authenticated connection to the server for this kind of function?

Follow up question: Any pointers on how to send email from our lua script, on a self hosted server?

Thanks!

I’m creating a solution using a temporary connection authenticated by device, and a modified version of the code found here:

Instead of mailgun, I’m working on a solution with sendermail.