How can we get the okta jwt token inside confluence?

I try to embedded javascript code inside a confluence web page in order to get the jwt from okta but it doesnt work

<“script src=“https://connect-cdn.atl-paas.net/all.js”>
AP.context.getToken(function(token){
console.log(“JWT token string”, token);
});
</script”>

any idea ?