Global

Type Definitions

CurrentUser :User

Object that represents the current logged-in Now4real user. It extends the User object with some additional properties.

Properties:
Name Type Description
consentGiven boolean

Indicates whether the user has accepted Now4real's Terms of Service and Privacy Policy.

User :object

Object that represents a Now4real user.

Properties:
Name Type Attributes Description
id string

The unique identifier of the user.

name string

The name of the user on the social network or on the site in the case of custom authentication.

pic string

The URL of the user profile image on the social network or on the site in case of custom authentication.

provider string

The login provider used for authentication. It can be "JWT" in case of custom authentication, "EMAIL" or one of the supported social providers: "FACEBOOK", "GOOGLE", "LINKEDIN", or "TWITTER".

role string <optional>

The role that the user assumes in the current pagechat, as configured in the Dashboard. It can be "GUEST" or "MODERATOR".

badge object <optional>

The badge for the user, as configured in the Dashboard.

Properties
Name Type Description
label string

The configured text label.

textColor string

The configured text color, in the hexadecimal format.

backgroundColor string

The configured backgound color, in the hexadecimal format.