Represents a user in Penpot.

interface User {
    id: string;
    name?: string;
    avatarUrl?: string;
    color: string;
    sessionId?: string;
}

Hierarchy (view full)

Properties

id: string

The unique identifier of the user.

const userId = user.id;
console.log(userId);
name?: string

The name of the user.

const userName = user.name;
console.log(userName);
avatarUrl?: string

The URL of the user's avatar image.

const avatarUrl = user.avatarUrl;
console.log(avatarUrl);
color: string

The color associated with the user.

const userColor = user.color;
console.log(userColor);
sessionId?: string

The session ID of the user.

const sessionId = user.sessionId;
console.log(sessionId);