I want to encode the user and password for issuing a token request in the setup, so I can use it in all the tests.
Usually it has the shape of “user:password” >> Encoded to Base64 is “dXNlcjpwYXNzd29yZA==” done with Base64 Encode and Decode - Online
What is the best way to do this in a K6 script?
btoa(“user:password”) does not seem to work…
Is there any way that avoids me to do all the base64 encoding by myself?