mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
update otp readme
This commit is contained in:
@@ -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 .
|
|
||||||
```
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user