Skip to content

Commit

Permalink
hi
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1618 committed Jan 9, 2025
1 parent f9b6095 commit 0e71ad8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/app/api/login/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export async function POST(request: NextRequest) {

const url = new URL(request.url);
url.pathname = '/';
const response = NextResponse.redirect(url);

console.log(url);
const response = NextResponse.json(loginResponse);

response.cookies.set(CookieType.ACCESS_TOKEN, loginResponse.token, {
httpOnly: true,
Expand All @@ -39,7 +37,6 @@ export async function POST(request: NextRequest) {
path: '/',
});

console.error('redirecting..');
return response;
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 0e71ad8

Please sign in to comment.