User details

Access the authenticated user's details

Access the details of the currently authenticated user.

Properties

PropertyTypeDescription
NameStringThe current user's display name.
EmailStringThe current user's email address.
_idStringThe current user's unique ID.

Syntax

const { Name, Email, _id } = kf.user;

Returns

Returns the current user's Name, Email, and _id. See Role details for the roles assigned to this user.

Example

console.log(kf.user.Name, kf.user.Email, kf.user._id);

Output

"John Jacobs", "john@kissflow.com", "Us9mhLyuEFn4";

On this page