Object.create() clears the options from `totp` method
amreladawy opened this issue · 0 comments
amreladawy commented
When using the totp
the passed options are cleared when they are cloned.
options = Object.create(options);
speakeasy.totp({ secret: 'ir6jqgomwnldmrhn', encoding: 'base32'})
I am using it in an Angular 5 app.