260206_02_BLD: 로그인 API 롤백
This commit is contained in:
@@ -14,8 +14,18 @@ export const POST = async (req: NextRequest) => {
|
||||
const backApi = await createBackApi();
|
||||
|
||||
const body = (await req.json()) as LoginRequest;
|
||||
const result = await backApi.post<LoginResponse>("/auth/login", body);
|
||||
|
||||
//const result = await backApi.post<LoginResponse>("/auth/login", body);
|
||||
const result:LoginResponse = {
|
||||
accessToken: "abcdefghijklmnopqrstuvwxyz0123456789",
|
||||
user: {
|
||||
userId: "TEST_USER",
|
||||
userName: "TEST_USER",
|
||||
userCmpn: "TEST",
|
||||
userTeam: "TEST",
|
||||
userRole: 9999,
|
||||
}
|
||||
}
|
||||
const res = NextResponse.json(result.user, { status: 200 });
|
||||
res.cookies.set("access_token", result.accessToken, {
|
||||
httpOnly: true,
|
||||
|
||||
Reference in New Issue
Block a user