Class: LoginUser
model/postgres/LoginUser.entity.LoginUser
A user of the Gropius system. This 1:1 equates the GropiusUser entity in the backend.
A user can have many ways of authenticating (login data)
Constructors
constructor
• new LoginUser()
Properties
id
• id: string
The unique ID of this login user
Example
12345678-90ab-cdef-fedc-ab0987654321
Defined in
login-service/src/model/postgres/LoginUser.entity.ts:19
loginData
• loginData: Promise
<UserLoginData
[]>
All ways of a user to authenticate.
This also includes ways that do not allow login but only sync
Defined in
login-service/src/model/postgres/LoginUser.entity.ts:46
neo4jId
• neo4jId: string
The id of this user in the neo4j database.
If null after initialization, there was an error. Must be unique as relation to GropiusUser is 1:1.
Defined in
login-service/src/model/postgres/LoginUser.entity.ts:28
revokeTokensBefore
• revokeTokensBefore: Date
All tokens (INCLUDING access tokens) issued to this user before this date are no longer valid.
Used to 'emergency'-Revoke tokens
Defined in
login-service/src/model/postgres/LoginUser.entity.ts:54
username
• username: string
The plain text username of the user. Must be kept in sync with username in backend.
Currently has no use outside the userpass strategy
Defined in
login-service/src/model/postgres/LoginUser.entity.ts:37
Methods
toJSON
▸ toJSON(): Object
Returns
Object
Name | Type |
---|---|
id | string |
neo4jId | string |
revokeTokensBefore | Date |
username | string |