Skip to content
Discussion options

You must be logged in to vote

A few ideas.

First: do you need live TOTP in your test environment? Lots of folks I've seen use a static TOTP token in test environments to save this headache.

Alternatively, your test environment might know the TOTP that it's expecting and print it to the screen when under test.

Next, instead of importing a library, one option I've used before is to find a self contained library and minify it to a single line and dump it into my JS file. It's not graceful, but it absolutely works. The last time was for base64 encoding.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Paradiesvogel7
Comment options

@Paradiesvogel7
Comment options

Answer selected by Paradiesvogel7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants