Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
Corrected namespace use from Totp to TotpAuth
  • Loading branch information
anubhavranjan authored Jul 18, 2022
1 parent f64b8cd commit cad6c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ TotpAuth.Authenticator.GenerateKey()
// Example: 5PC4TPFPQPX7HPOS
// Generate OTP
var totp = new Totp.Authenticator();
var totp = new TotpAuth.Authenticator();
totp.GetCode("SECRETKEY");
// Example: 788644
// Validate Code
var totp = new Totp.Authenticator();
var totp = new TotpAuth.Authenticator();
totp.CheckCode("5PC4TPFPQPX7HPOS", "788644");
// Example: true
Expand Down

0 comments on commit cad6c8c

Please sign in to comment.