update otp readme

This commit is contained in:
Asim Aslam
2021-04-28 11:12:59 +01:00
parent ce8d0f3edf
commit 54db57b09f
2 changed files with 3 additions and 23 deletions

View File

@@ -1,23 +1,3 @@
# Otp Service # OTP Service
This is the Otp service Generate one time passwords (OTP) for any unique id, email or user. Codes are valid for up to 60 seconds.
Generated with
```
micro new otp
```
## Usage
Generate the proto code
```
make proto
```
Run the service
```
micro run .
```

View File

@@ -20,7 +20,7 @@ message GenerateResponse {
string code = 1; string code = 1;
} }
// Validate the code // Validate the OTP code
message ValidateRequest { message ValidateRequest {
// unique id, email or user for which the code was generated // unique id, email or user for which the code was generated
string id = 1; string id = 1;