sec51 / twofactor

Golang two factor authentication library
ISC License
217 stars 66 forks source link

Purpose of the public OTP() function? #8

Closed MarkSonghurst closed 6 years ago

MarkSonghurst commented 6 years ago

Hi Thanks for a great package. Please could you explain the purpose of the (*Totp) OTP() function? I'm struggling to understand what it is for and how it would fit into a 2FA workflow.

Many thanks.

MarkSonghurst commented 6 years ago

Apologies, I can see the function in use in totp_test.go It returns an OTP that can used in replacement of a code generated by Google Authenticator. Handy for testing! Closing ticket.