I’m looking for a way to generate a code_verifier from an api.
I think I managed to find the js code to do that.
My question is: how to implement this code in OB2.
Thanks for the help, guys!
Dr = function() {
var e = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",
t = "";
return Array.from(zr().getRandomValues(new Uint8Array(43))).forEach((function(n) {
return t += e[n % e.length]
})), t
}
zr = function() {
return window.crypto || window.msCrypto
}