Skip to content

Commit 0a3fa91

Browse files
authored
Update otp.go (#57)
1 parent 98f30c2 commit 0a3fa91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

otp.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ func (k *Key) URL() string {
161161
type Algorithm int
162162

163163
const (
164+
// AlgorithmSHA1 should be used for compatibility with Google Authenticator.
165+
//
166+
// See https://github.com/pquerna/otp/issues/55 for additional details.
164167
AlgorithmSHA1 Algorithm = iota
165168
AlgorithmSHA256
166169
AlgorithmSHA512

0 commit comments

Comments
 (0)