Nœuds — OTP SMS / Email


Envoi et vérification de codes à usage unique par SMS ou email, dans le cadre d’un graphe d’authentification.

SmsOtpSendNode — génère un OTP numérique et l’envoie par SMS.

PropriétéTypeDéfaut
otpLengthint6
ttlSecondsint300
phoneAttributestringtelephoneNumber
phoneSharedStateKeystringSS_PHONE
smsBodyTemplatestringYour verification code is: {otp} (valid for {ttl}s)

Outcomes : sent / error.

SmsOtpVerifyNode — vérifie l’OTP soumis contre celui envoyé par SmsOtpSendNode.

PropriétéTypeDéfaut
maxAttemptsint5

Outcomes : true / false / expired.

EmailOtpSendNode — équivalent e-mail de SmsOtpSendNode.

PropriétéTypeDéfaut
otpLengthint6
ttlSecondsint300
emailAttributestringmail
emailSharedStateKeystringemail
emailSubjectstringYour verification code
emailBodyTemplatestringgabarit avec {otp}/{ttl}

Outcomes : sent / error.

EmailOtpVerifyNode — équivalent e-mail de SmsOtpVerifyNode.

PropriétéTypeDéfaut
maxAttemptsint5

Outcomes : true / false / expired.

Modifier cette page sur GitHub