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