Codewise
Courses
My learning
Ideas
Leaderboard
YouTube
Courses
My learning
Ideas
Leaderboard
YouTube
Sign in
services/auth-service/src/types/auth.ts · Chat App Microservices | Codewise
Chat App Microservices
chatapp
/
services
/
auth-service
/
src
/
types
/
auth.ts
auth.ts
26 lines, 423 B
Raw
1
export
interface
RegisterInput
{
2
email
:
string
;
3
password
:
string
;
4
displayName
:
string
;
5
}
6
7
export
interface
LoginInput
{
8
email
:
string
;
9
password
:
string
;
10
}
11
12
export
interface
UserData
{
13
id
:
string
;
14
email
:
string
;
15
displayName
:
string
;
16
createdAt
:
string
;
17
}
18
19
export
interface
AuthTokens
{
20
accessToken
:
string
;
21
refreshToken
:
string
;
22
}
23
24
export
interface
AuthResponse
extends
AuthTokens
{
25
user
:
UserData
;
26
}