Generate token for email and SMS

OWASP is a good resource for this kind of question: