daegalus / dart-otp

RFC6238 Time-Based One-Time Password / Google Authenticator Library
MIT License
100 stars 25 forks source link

Fix type error at runtime #14

Closed readytopark closed 4 years ago

readytopark commented 4 years ago

randomSecret() method generates the following error at runtime after base32.encode changed its parameter type on the latest version.

type 'List<dynamic>' is not a subtype of type 'Uint8List'

Fix the issue by using the appropriate constructor from Uint8List

daegalus commented 4 years ago

Thanks for catching this, I will make a new release first thing tomorrow as it's 2am. I appreciate the extra test too.