mirror of
https://github.com/1f349/twofactor.git
synced 2024-12-21 23:14:11 +00:00
Added warning to Totp struct
This commit is contained in:
parent
73ce7eaf59
commit
737259eaba
2
totp.go
2
totp.go
@ -30,6 +30,8 @@ var (
|
||||
initialization_failed_error = errors.New("Totp has not been initialized correctly")
|
||||
)
|
||||
|
||||
// WARNING: The `Totp` struct should never be instantiated manually!
|
||||
// Use the `NewTOTP` function
|
||||
type Totp struct {
|
||||
key []byte // this is the secret key
|
||||
counter [counter_size]byte // this is the counter used to synchronize with the client device
|
||||
|
Loading…
Reference in New Issue
Block a user