Skip to content

Commit

Permalink
commit for redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
dhapdhap123 committed May 20, 2024
1 parent 1894c41 commit a3d86a2
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions src/pages/join/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,45 +30,8 @@ export const Login = () => {
const kakaoOauthUrl = `https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${process.env.REACT_APP_KAKAO_CLIENT_ID}&redirect_uri=${process.env.REACT_APP_TEST_REDIRECT_URI}`;
window.location.href = kakaoOauthUrl;
localStorage.setItem("loginType", "kakao");
// const getCode = async () => {
// const res = axios.get(kakaoOauthUrl);
// console.log(res);
// };
// getCode();

// setTimeout(() => {

// console.log(urlParameter);
// const a = async () => {
// const res = await axios.post(`${process.env.REACT_APP_BASE_URL}`, data);
// return res;
// }

// }, 3000);
};

// const loginWithApple = async (e: any) => {
// e.preventDefault();
// localStorage.setItem('loginType', 'apple');

// console.log('sign in with apple');

// (window as any).AppleID.auth.init({
// responseType: 'code',
// responseMode: 'query',
// clientId: 'net.azurestaticapps.kind-pebble-0020f5710.5',
// redirectURI: 'https://kind-pebble-0020f5710.5.azurestaticapps.net/redirection',
// usePopup: false,
// });

// try {
// const res = await (window as any).AppleID.auth.signIn();
// console.log(res);
// } catch (error) {
// console.log(error);
// }
// };

const loginWithApple = async () => {
localStorage.setItem("loginType", "apple");
// const appleOauthUrl = `https://appleid.apple.com/auth/authorize?response_type=code&client_id=${process.env.REACT_APP_APPLE_CLIENT_ID}&redirect_uri=${process.env.REACT_APP_REDIRECT_URI}`;
Expand Down

0 comments on commit a3d86a2

Please sign in to comment.