puter.auth.isSignedIn()


Checks whether the user is signed into the application.

Syntax

puter.auth.isSignedIn();

Parameters

None

Return value

Returns true if the user is signed in, false otherwise.

Example

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.print(`Sign in status: ${puter.auth.isSignedIn()}`);
    </script>
</body>
</html>