Skip to content

Commit

Permalink
feat: headers content type 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
shinwonse committed Aug 30, 2023
1 parent b30d3b0 commit c65b978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/redirect/apple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const appleLoginCallback = (code: string, name?: string, email?: string) => {
url: generateUrl({ url: '/apple', params: { code, name, email } }),
method: 'post',
validateStatus: null,
headers: { 'Content-Type': 'application/json' },
});
};

Expand All @@ -33,7 +34,6 @@ export default async function handler(
let response;
if (name && email) response = await appleLoginCallback(code, name, email);
else response = await appleLoginCallback(code);
console.log(response);

const {
[ACCESS_TOKEN_KEY]: accessToken,
Expand Down

0 comments on commit c65b978

Please sign in to comment.