Skip to content

Commit

Permalink
#5 :: Update the readme with the qr usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jltorresm committed Sep 2, 2020
1 parent 99f0bf3 commit 56f67df
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Expand Up @@ -118,7 +118,16 @@ The former being the preferred way because of the ease of use and the avoidance
of human error.

#### QR Code
TODO
To generate the QR code just get the `KeyUri` and call the `QRCode` method:
```go
otp := otpgo.TOTP{}
base64EncodedQRImage, _ := otp.
KeyUri("john.doe@example.org", "A Company").
QRCode()

// Then use base64EncodedQRImage however you like
// e.g.: send it to the client to display as an image
```

#### Manual registration
TODO
Expand Down

0 comments on commit 56f67df

Please sign in to comment.