How do I trigger the email verification workflow w...
# support-questions-legacy
a
How do I trigger the email verification workflow when a new user is created using only the backend SDKs? Currently we have a proxy lambda handling requests but since this handles all request types I don't know when a particular invocation is a sign up or a login or a password reset.
r
Hey! You want to mark the email as unverfiied and that should trigger the email verification flow if you are using our pre built UI. I don't quite understand your setup - so I'm not sure how best to suggest.
a
so
if I create a user by hitting /signup
and proxying that request to the lambda function that looks like this:
Copy code
supertokens.init(getBackendConfig());

module.exports.auth = middy(middleware())
  .onError((request) => {
      throw request.error;
  });
what would I do?
let me ask something else
How do I make an email as unverified?
r
There should be a function in the backend SDK for the recipe you chose called unverifyEmail
2 Views