puter.auth.getUser()Returns the user's basic information.
puter.auth.getUser()
None
A promise that resolves to a User object containing the user's basic information.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.auth.getUser().then(function(user) {
puter.print(JSON.stringify(user));
});
</script>
</body>
</html>