Skip to content

Commit

Permalink
Typo on create()
Browse files Browse the repository at this point in the history
  • Loading branch information
amdelamar committed May 19, 2017
1 parent bf40247 commit adfa2fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ String secret = OTP.randomBase32(20);
// Generate a Time-based OTP from the secret, using Unix-time
// rounded down to the nearest 30 seconds.
String code = OTP.createTotp(secret, OTP.timeInHex(), 6, "totp");
String code = OTP.create(secret, OTP.timeInHex(), 6, "totp");
```

Show User QR Code <sup>1</sup>
Expand Down
3 changes: 1 addition & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ <h3>Getting Started</h3>
<ul>
<li>Maven <code>coming soon</code>.</li>
<li>Gradle <code>coming soon</code>.</li>
<li>Download Jar <code>coming soon</code>.</li>
</ul>

<pre><code class="java">// Random secret Base32 with 20 bytes (160 bits) length
Expand All @@ -72,7 +71,7 @@ <h3>Getting Started</h3>

// Generate a Time-based OTP from the secret, using Unix-time
// rounded down to the nearest 30 seconds.
String code = OTP.createTotp(secret, OTP.timeInHex(), 6, "totp");</code></pre>
String code = OTP.create(secret, OTP.timeInHex(), 6, "totp");</code></pre>
<p>
Show User QR Code<sup>1</sup><br>
Easiest way to do this is through Goolge APIs, but I plan to add a <code>generateImage()</code> function soon.</p>
Expand Down

0 comments on commit adfa2fa

Please sign in to comment.