Skip to content

Commit

Permalink
feat: code, name, email
Browse files Browse the repository at this point in the history
  • Loading branch information
shinwonse committed Aug 30, 2023
1 parent a3f231a commit b30d3b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/api/redirect/apple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
console.log('req', req.body);
const code = req.query.code?.toString();
const name = req.query.name?.toString();
const email = req.query.email?.toString();
const code = req.body.code?.toString();
const name = req.body.name?.toString();
const email = req.body.email?.toString();
console.log(code, name, email);

if (!code) {
res.redirect(307, '/login');
Expand Down

0 comments on commit b30d3b0

Please sign in to comment.