Function getUserFriendlyName

  • A friendly string that represents the a User Profile. Uses first name, last name, full name, email address or username.

    Example

    const userProfile = userService.parseUserProfile(jwtPayload)
    const name = userService.getUserFriendlyName(userProfile)
    if (name) {
    // Display current user's name
    }

    Returns

    Parameters

    Returns string