---
title: The user profile
project: OpenAuth
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/openauth/1-0/reference/user-profile/
updated: 2026-11-19T09:22:05.212Z
---

# The user profile

> The fields of the profile that OpenAuth returns after a sign-in.

Every extension turns the provider's answer into the same set of fields. A provider does not always send everything, so some fields can be empty.

## Fields

| Field | Meaning |
|---|---|
| `id` | The user's ID at the provider. Together with `serviceid` it identifies the user. |
| `name` | Full name. |
| `firstname` | First name. |
| `lastname` | Last name. |
| `nick` | Nickname, if the provider has one. |
| `email` | Email address, if the user shares it. |
| `gender` | Gender in lower case, if the provider sends it. |
| `photo` | Address of the profile picture. |
| `access_token` | The provider's access token, for calls to the provider's own API. |
| `expire` | When the access token expires. |
| `response` | The provider's raw answer, with everything it sent. |
| `serviceid` | The extension that was used, for example `facebook`. Added by OpenAuth. |
| `sessionid` | Your session ID. Added by OpenAuth. |

## Facebook

The Facebook extension asks Facebook for `email`, `first_name`, `last_name`, `gender`, `hometown`, `locale`, `name`, `id`, `timezone` and `picture`. `response` holds that answer; `hometown`, `locale` and `timezone` are only there.

## Find the user in your app

Use `serviceid` and `id` together as the key of the user in your database. The email can change, and is not always present.

Keep `access_token` only if your app calls the provider's API. It is a credential: store it like a password.
