-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: 토큰 인증 msw 작성 및 로그인, 토큰인증 mock data 작성 #179
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* ----- 로그인 MOCK DATA ----- */ | ||
export const MOCK_LOGIN_DATA = { | ||
status: 200, | ||
code: 'BMC002', | ||
message: '로그인 성공', | ||
value: { | ||
memberNo: 7251, | ||
id: 'stest0123', | ||
email: '[email protected]', | ||
password: null, | ||
gender: 'woman', | ||
age: '30', | ||
createdAt: '2024-02-19', | ||
createdBy: 'admin', | ||
modifiedAt: '2024-02-19', | ||
modifiedBy: 'admin', | ||
jwtToken: 'test-abcdefg1234--abc', | ||
}, | ||
}; | ||
|
||
/* ----- 토큰 MOCK DATA ----- */ | ||
export const MOCK_TOKEN_DATA = { | ||
status: 202, | ||
code: 'BMC002', | ||
message: '토큰 인증 성공', | ||
value: { | ||
jwtToken: 'success-test-abcdefg1234--abc', | ||
}, | ||
}; |