I have created a simple page that you login with a service and it gets the accounts username using nodejs. I then give the user a file that look like this:
<html>
<body>
<p>Hello <span id="user">user-placeholder</span></p>
</body>
</html>
Index.js: (assume user is logged in as they are)
app.get('/authorized', functiong(req,res){
console.log(accountInfo.username);
res.sendFile(file);
});
I just want to update the span that has id user with accountInfo.username.
I'm not sure how exactly to update this value.