complete
This commit is contained in:
@@ -1,33 +1,12 @@
|
||||
'use client';
|
||||
|
||||
import axios from "axios";
|
||||
import { useState } from "react";
|
||||
import loginButton from '@/assets/kakao_login_medium_narrow.png';
|
||||
import Link from "next/link";
|
||||
|
||||
|
||||
const LoginForm = () => {
|
||||
const [id, setId] = useState('') //ID
|
||||
const [pw, setPw] = useState('') //PW
|
||||
const [params, setParams] = useState({
|
||||
id: '',
|
||||
pw: ''
|
||||
})
|
||||
const requestUrl = 'https://kauth.kakao.com/oauth/authorize?client_id=a1d6afef2d4508a10a498b7069f67496&redirect_uri=http://localhost:8080/login/oauth-kakao&response_type=code'
|
||||
|
||||
const login = () => {
|
||||
axios.get(requestUrl, {
|
||||
headers: {
|
||||
"client_id": "a1d6afef2d4508a10a498b7069f67496",
|
||||
}
|
||||
}).then((res) => {
|
||||
console.log(requestUrl + "===>")
|
||||
console.log(res.data)
|
||||
}).catch((e) => {
|
||||
console.log('errorMsg' + "===>")
|
||||
console.log(e)
|
||||
})
|
||||
}
|
||||
const requestUrl = 'https://kauth.kakao.com/oauth/authorize?client_id=a1d6afef2d4508a10a498b7069f67496&redirect_uri=http://localhost:9001/login/oauth-kakao&response_type=code'
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user