Skip to content

Commit

Permalink
Test: check the log in vercel.
Browse files Browse the repository at this point in the history
  • Loading branch information
Agry88 committed Apr 19, 2023
1 parent c9861a4 commit 79e8e86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/api/oauth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
.catch((err) => {
console.error(err);
res.status(500).send("Something went wrong");
})
})

console.log(axiosResponse);


const { data: { access_token: accessToken, user_id: userId } } = AxiosResponseSchema.parse(axiosResponse);
res.redirect(`${hostURL}/redirect?accessToken=${accessToken}&userId=${userId}`);
Expand Down

1 comment on commit 79e8e86

@vercel
Copy link

@vercel vercel bot commented on 79e8e86 Apr 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.