Skip to content

Instantly share code, notes, and snippets.

View GwonHyeok's full-sized avatar
🎯
Focusing

GwonHyeok GwonHyeok

🎯
Focusing
View GitHub Profile
@GwonHyeok
GwonHyeok / login.js
Last active December 17, 2023 15:45
네이버 로그인 Node.js
const rp = require('request-promise')
const NodeRsa = require('node-rsa')
const getLenChar = value => String.fromCharCode(`${value}`.length)
async function doLogin(email, password) {
const cookieJar = rp.jar();
// 세션 키 발급
const keys = await rp({url: 'https://nid.naver.com/login/ext/keys.nhn', jar: cookieJar})