Can't Encode string with window.btoa(String)

i want to know, how to use encode and decode window.btoa(STRING) or window.atob(STRING) in yellow AI?

return new Promise(resolve => {
// Your logic goes here
let text = “USERNAME:P@SSW)RD”;
let encoded = window.btoa(text);

i got message “window is not defined”

or is there any method for decode or encode base-64 ?

1 Like

Not sure if this is what you’re looking for but checkout this doc: Code |

Please feel free to drop a comment below if this doesn’t solve your problem.

1 Like