Function: expiresIn()
expiresIn(
seconds):string
A code TTL as the plain phrase the email states (“10 minutes”, “45 seconds”).
Whole minutes read as minutes; anything else stays in seconds rather than rounding, so a 90-second TTL is not advertised as “1 minute” and a recipient is never told the code lives longer than it does.
Parameters
Section titled “Parameters”seconds
Section titled “seconds”number
Returns
Section titled “Returns”string