---
title: lastName
framework: signinwithapplejs
role: symbol
role_heading: Instance Property
path: signinwithapplejs/namei/lastname
---

# lastName

The user’s last name.

## Declaration

```data
attribute string lastName;
```

## Discussion

Discussion Apple doesn’t receive the user’s full name shared with the system UI. The raw data is passed directly to your app from the browser and is not included in the user’s identity token. To help prevent cross-site scripting attacks, validate and sanitize the user-submitted first and last name values before storing on your app servers.

## See Also

### Identifying the user by name

- [firstName](signinwithapplejs/namei/firstname.md)
