src/models/user.ts
email: |
Type : void
|
Defined in src/models/user.ts:20
|
name |
name: |
Type : void
|
Defined in src/models/user.ts:21
|
password |
password: |
Type : void
|
Defined in src/models/user.ts:22
|
export interface User {
user: string; // email of user
name: string; // name of user
}
export interface LoginRequest {
user: string; // email of user
password: string; // md5 hashed password of user
}
export interface LoginResponse extends User {
accessToken: string; // access token for authenticating subsequent smartmirror api requests
}
export interface RegisterRequest {
email: string; // email of new user
name: string; // name of new user
password: string; // md5 hashed password of new user
}