The data below describes how the user record is saved in session after the user is logged in.
| Field Name | Type | Description |
---|
_id | Mongo ID | Mongo Record ID |
username | String | The UserName |
firstName | String | The User First Name |
lastName | String | The User Last Name |
email | String | The User Email |
status | String | The User Status. |
profile | Object | Additional User Info. |
socialLogin | Object | Information pertaining to login integration with social platforms. Only available in case the user logged in with passport; and will contain only one object, which will be the current logged in social account. |
| strategy | String | The social platform name. facebook, google, twitter, etc |
| id | String | The id of the user at the social platform |
| accessToken | String | An access token that can be used to validate if the social user account is still valid |
config | Object |
|
|
| Field Name | Type | Mandatory | Unique | Indexed | Description |
---|
keys | Object | YES | NO | NO | Overridden ACL Keys | packages | Object | NO | NO | NO | Overridden ACL Packages |
|
tenant | Object |
|
|
| Field Name | Type | Mandatory | Unique | Indexed | Description |
---|
id | String | YES | NO | NO | Tenant ID | code | String | YES | NO | NO | Tenant Code |
|
groups | Array | Array Of Group Codes |
ts | Time stamp | record created timestamp |
Sample
var data = {
"_id": ObjectId('54ee1a511856706c23639308'),
"username": "owner",
"firstName": "owner",
"lastName": "owner",
"email": "owner@soajs.org",
"ts": 1460024840683,
"status": "active",
"profile": {},
"socialLogin": {
"strategy": "facebook",
"id": "10153921831136546",
"accessToken": "EAAEtfZBue5g4BAHxZC795RjLBHzM044Rd1lqJDMUzj1FNDkZD"
},
"groups": [
"owner"
],
"config": {
"packages": {},
"keys": {}
},
"tenant": {
"id": "5551aca9e179c39b760f7a1a",
"code": "DBTN"
}
}