Perfect thanks! Yep there ended up being two issues, there was the async stuff and then the getSessionToken from window.app had to be from just app in my case. Using this format worked out:
if(app){
const sessionTok = getSessionToken(app);
console.log("Current App: ", app);
sessionTok
.then((token) => {
console.log(‘This is my token’, token);
})
.catch((error) => {
console.log(‘Something wrong happens’, error);
});
}
Thanks for all the help!