@@ -2240,42 +2240,42 @@ const convictConf = convict({
2240
2240
} ,
2241
2241
twilio : {
2242
2242
credentialMode : {
2243
- default : 'default ' ,
2244
- doc : 'Which credential set to use. Options are test, default, or apiKeys.' ,
2243
+ default : '' ,
2244
+ doc : 'Which credential set to use. To enable twilio, options are "", " test", " default" , or " apiKeys" .' ,
2245
2245
env : 'RECOVERY_PHONE__TWILIO__CREDENTIAL_MODE' ,
2246
2246
format : String ,
2247
2247
} ,
2248
2248
testAccountSid : {
2249
2249
default : 'AC_REPLACEMEWITHKEY' ,
2250
- doc : 'Twilio Testing Account ID. Note must be used for tests leveraging Twilio magic phone numbers.' ,
2250
+ doc : 'Twilio Testing Account ID. Note must be used for tests leveraging Twilio magic phone numbers. Required when credentialMode is test. ' ,
2251
2251
env : 'RECOVERY_PHONE__TWILIO__TEST_ACCOUNT_SID' ,
2252
2252
format : String ,
2253
2253
} ,
2254
2254
testAuthToken : {
2255
2255
default : '' ,
2256
- doc : 'Twilio Testing Account Auth Token. Note must be used for tests leverage Twilio magic phone numbers.' ,
2256
+ doc : 'Twilio Testing Account Auth Token. Note must be used for tests leverage Twilio magic phone numbers. Required when credentialMode is test. ' ,
2257
2257
env : 'RECOVERY_PHONE__TWILIO__TEST_AUTH_TOKEN' ,
2258
2258
format : String ,
2259
2259
} ,
2260
2260
accountSid : {
2261
2261
default : 'AC_REPLACEMEWITHKEY' ,
2262
- doc : 'Twilio Account ID' ,
2262
+ doc : 'Twilio Account ID. Required when credentialMode is default or apiKeys. ' ,
2263
2263
env : 'RECOVERY_PHONE__TWILIO__ACCOUNT_SID' ,
2264
2264
format : String ,
2265
2265
} ,
2266
2266
authToken : {
2267
2267
default : '' ,
2268
- doc : 'Twilio Auth Token to access api. Note, using apiKey/apiSecret is preferred.' ,
2268
+ doc : 'Twilio Auth Token to access api. Note, using apiKey/apiSecret is preferred. Required when credentialMode is default. ' ,
2269
2269
env : 'RECOVERY_PHONE__TWILIO__AUTH_TOKEN' ,
2270
2270
} ,
2271
2271
apiKey : {
2272
2272
default : '' ,
2273
- doc : 'An api key used to access the twilio rest api. Note, when provided the authToken is no longer needed .' ,
2273
+ doc : 'An api key used to access the twilio rest api. Required when credentialMode is apiKeys .' ,
2274
2274
env : 'RECOVERY_PHONE__TWILIO__API_KEY' ,
2275
2275
} ,
2276
2276
apiSecret : {
2277
2277
default : '' ,
2278
- doc : 'A secret used in conjunction with the apiKey to access the twilio rest api.' ,
2278
+ doc : 'A secret used in conjunction with the apiKey to access the twilio rest api. Required when credentialMode is apiKeys. ' ,
2279
2279
env : 'RECOVERY_PHONE__TWILIO__API_SECRET' ,
2280
2280
} ,
2281
2281
webhookUrl : {
0 commit comments