a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

log auth to console in dev

+4 -2
+4 -2
actions/phone_auth/request_phone_auth_token.ts
··· 7 7 import twilio from "twilio"; 8 8 9 9 async function sendAuthCode(phoneNumber: string, code: string) { 10 - console.log("HERE IS THE CODE: " + code); 11 - return; 10 + if (process.env.NODE_ENV === "development") { 11 + console.log(`[auth code for ${phoneNumber}:`, code, "]"); 12 + return; 13 + } 12 14 const accountSid = process.env.TWILIO_ACCOUNT_SID; 13 15 const authToken = process.env.TWILIO_AUTH_TOKEN; 14 16 const client = twilio(accountSid, authToken);