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é | Type | Défaut |
|---|---|---|
otpLength | int | 6 |
ttlSeconds | int | 300 |
phoneAttribute | string | telephoneNumber |
phoneSharedStateKey | string | SS_PHONE |
smsBodyTemplate | string | Your verification code is: {otp} (valid for {ttl}s) |
Outcomes : sent / error.
SmsOtpVerifyNode — vérifie l’OTP soumis contre celui envoyé par SmsOtpSendNode.
| Propriété | Type | Défaut |
|---|---|---|
maxAttempts | int | 5 |
Outcomes : true / false / expired.
EmailOtpSendNode — équivalent e-mail de SmsOtpSendNode.
| Propriété | Type | Défaut |
|---|---|---|
otpLength | int | 6 |
ttlSeconds | int | 300 |
emailAttribute | string | mail |
emailSharedStateKey | string | email |
emailSubject | string | Your verification code |
emailBodyTemplate | string | gabarit avec {otp}/{ttl} |
Outcomes : sent / error.
EmailOtpVerifyNode — équivalent e-mail de SmsOtpVerifyNode.
| Propriété | Type | Défaut |
|---|---|---|
maxAttempts | int | 5 |
Outcomes : true / false / expired.