Skip to content

Commit d92a13a

Browse files
committed
[#60] ✨ update auth related types
1 parent 09ccab8 commit d92a13a

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/types/auth.types.d.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1+
/*
2+
path: '/v1/auth'
3+
GET: 로그인한 유저 조회
4+
*/
5+
export type GetMemberInfoResult = User
6+
7+
/*
8+
path: '/v1/auth/sign-up'
9+
POST: 회원가입
10+
*/
111
export interface SignUpRequest {
212
email: Email
313
password: Password
414
name: Name
5-
gitHub?: GitHub
15+
gitHub: GitHub
16+
}
17+
export interface SignUpResponse extends User {
18+
gitHub: GitHub
619
}
720

21+
/*
22+
path: '/v1/auth/sign-in'
23+
POST: 로그인
24+
*/
825
export interface SignInRequest {
926
email: Email
1027
password: Password
1128
}
12-
1329
export interface SignInResponseResult extends User {
1430
accessToken: Token
1531
refreshToken: Token
1632
}
17-
18-
export type SignInResponse = ApiResponse<SignInResponseResult>

0 commit comments

Comments
 (0)