Design the auth flow apis (signup, login, etc) for an OTP based user authentication. Assume OTP will be created and presented to users upon a successful login.
- URL
- Request Method
- Request Headers
package main | |
import ( | |
"io/ioutil" | |
"os" | |
"log" | |
"bufio" | |
"fmt" | |
"strings" | |
"path/filepath" |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
type Command struct { | |
message string | |
senderId int |
package grep | |
import ( | |
"bufio" | |
"flag" | |
"io" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" |
package grep | |
import ( | |
"os" | |
"path/filepath" | |
"strings" | |
"sync" | |
"testing" | |
"time" | |
) |