Class: UserLoginDataResponse
api-login/auth/dto/user-login-data.dto.UserLoginDataResponse
Constructors
constructor
• new UserLoginDataResponse()
Properties
description
• description: string
A description of the authentication
Defined in
gropius-login-service/backend/src/api-login/auth/dto/user-login-data.dto.ts:43
expires
• expires: Date
If not null, this authentication should be considered invalid on any date+time AFTER this.
This is to ensure created UserLoginData, that are not used for registration
or linking in time, are not kept forever.
If null, the authentication should not expire by date.
Defined in
gropius-login-service/backend/src/api-login/auth/dto/user-login-data.dto.ts:31
id
• id: string
The unique ID of this login data
Example
12345678-90ab-cdef-fedc-ab0987654321
Defined in
gropius-login-service/backend/src/api-login/auth/dto/user-login-data.dto.ts:10
state
• state: LoginState
The state this authentication is in.
Rules:
- Only UserLoginData in state LoginState.VALID may be used for login and retrieving an access token.
- Only UserLoginData in state LoginState.WAITING_FOR_REGISTER may be used for registration or linking.
- UserLoginData in state LoginState.BLOCKED cannot be used for anything
Example
"VALID"
Defined in
gropius-login-service/backend/src/api-login/auth/dto/user-login-data.dto.ts:22
strategyInstance
• strategyInstance: StrategyInstance
The strategy instance this authentication uses.
For example a UserLoginData containing a password would reference a strategy instance of type userpass
Defined in
gropius-login-service/backend/src/api-login/auth/dto/user-login-data.dto.ts:38