mirror of https://gitee.com/bigwinds/arangodb
Formatting.
This commit is contained in:
parent
b9edef489c
commit
ef03b60916
|
@ -49,17 +49,12 @@ try {
|
|||
|
||||
Session objects are instances of a Foxx model with the following attributes:
|
||||
|
||||
!SUBSECTION sessionData
|
||||
|
||||
Volatile session data. This can be an arbitrary object that will be stored with the session in the database. If you want to store session-specific (rather than user-specific) data in the database, this is the right place for that.
|
||||
|
||||
!SUBSECTION uid
|
||||
|
||||
The session's active user's *_key* or *undefined* (no active user).
|
||||
|
||||
!SUBSECTION userData
|
||||
|
||||
The session's active user's *userData* attribute or an empty object.
|
||||
* *sessionData*: volatile session data. This can be an arbitrary object that will be stored with the session in the database. If you want to store session-specific (rather than user-specific) data in the database, this is the right place for that.
|
||||
* *uid*: the session's active user's *_key* or *undefined* (no active user).
|
||||
* *userData*: the session's active user's *userData* attribute or an empty object.
|
||||
* *created*: timestamp the session was created at.
|
||||
* *lastAccess*: timestamp of the last time the session was fetched from the database.
|
||||
* *lastUpdate*: timestamp of the last time the session was written to the database.
|
||||
|
||||
!SECTION Create a session
|
||||
|
||||
|
|
|
@ -48,13 +48,8 @@ try {
|
|||
|
||||
User objects are instances of a Foxx model with the following attributes:
|
||||
|
||||
!SUBSECTION userData
|
||||
|
||||
Application-specific user data. This is an arbitrary object that must at least have a *username* property set to the user's username.
|
||||
|
||||
!SUBSECTION authData
|
||||
|
||||
An arbitrary object used by authentication apps to store sensitive data. For password authentication this could be a hash, for third-party authentication services this could be information about the user's identity. This attribute should never be exposed to the user directly.
|
||||
* *userData*: application-specific user data. This is an arbitrary object that must at least have a *username* property set to the user's username.
|
||||
* *authData*: an arbitrary object used by authentication apps to store sensitive data. For password authentication this could be a hash, for third-party authentication services this could be information about the user's identity. This attribute should never be exposed to the user directly.
|
||||
|
||||
!SECTION Create a user
|
||||
|
||||
|
|
Loading…
Reference in New Issue