xlzd / gotp

Golang OTP(One-Time Password) Library.
MIT License
475 stars 66 forks source link

panic when getting the key from viper. #1

Closed adlahd3 closed 6 years ago

adlahd3 commented 6 years ago

key := viper.GetString("totp") code := gotp.NewDefaultTOTP(k).Now() is causing this problem.

xlzd commented 6 years ago

hello, can you provide more detail pls ?