The type is described only as string in the function without no mention for it to be in base32 encoding. I bumped into it after getting an error into generating a code.
This need for it to be encoded into base32 must be more explicit instead of needing to go looking into the code to find why or add countermeasures to automatically convert the secret into it (which we can add a helper function for the user to do it instead of manually doing this encoding make the work easier.

The type is described only as string in the function without no mention for it to be in base32 encoding. I bumped into it after getting an error into generating a code.
This need for it to be encoded into base32 must be more explicit instead of needing to go looking into the code to find why or add countermeasures to automatically convert the secret into it (which we can add a helper function for the user to do it instead of manually doing this encoding make the work easier.