Spanish Total.js
English
Documentation For AI agents
Contents

The user profile

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

.md GitHub
On this page

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

FieldMeaning
idThe user's ID at the provider. Together with serviceid it identifies the user.
nameFull name.
firstnameFirst name.
lastnameLast name.
nickNickname, if the provider has one.
emailEmail address, if the user shares it.
genderGender in lower case, if the provider sends it.
photoAddress of the profile picture.
access_tokenThe provider's access token, for calls to the provider's own API.
expireWhen the access token expires.
responseThe provider's raw answer, with everything it sent.
serviceidThe extension that was used, for example facebook. Added by OpenAuth.
sessionidYour 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.

Made in Europe