npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

passport-naver-oauth2

v2.0.0

Published

"네이버 아이디로 로그인" 연동을 위한 차세대 Passport Strategy 라이브러리

Downloads

3

Readme

"네이버 아이디로 로그인" 연동을 위한 차세대 Passport Strategy 라이브러리

설치

# npm이나 yarn도 사용 가능
pnpm install passport-naver-oauth2

버전

유의적 버전 2.0.0을 사용하며, 기존 passport-naver 과의 호환성 강조를 위해, 주(主) 버전이 2로 시작합니다.

이용 방법

  1. NAVER Developers 에서 애플리케이션을 등록 합니다.
  2. 애플리케이션을 생성하고 받은 Client IDClient Secret을 Passport에 적용하면 됩니다.

사용 예시

import passport from 'passport';
import {NaverStrategy, IProfile as NaverProfile} from 'passport-naver-oauth2';

passport.use(
  new NaverStrategy(
    {
      clientID: '',
      clientSecret: '',
      callbackURL: '',
    },
    (
      accessToken: string,
      refreshToken: string,
      profile: NaverProfile,
      done: any,
    ) => {
      // 로그인 처리 Business Logic 작성
      done(null, profile);
    },
  ),
);

주의 사항

  1. 네이버는 필수항목에 체크하지 않아도, 로그인이 되므로 모든 정보가 제대로 넘어오지 않을 수 있습니다. #

  2. 만약 필수항목에 체크되지 않은 경우, authType 파라미터에 reprompt / reauthenticate를 넘겨 동의창을 다시 호출합니다. (reauthenticate는 아이디/비밀번호를 다시 입력하게 하고, reprompt는 동의창만 다시 호출합니다.)

// 예시 코드
app.get('/login', passport.authenticate('naver', {authType: 'reprompt'}));
  1. CI 등 추가정보 제공 제휴가 된 경우, 타입을 별도로 처리해야 합니다.

개발자

👤 Minsu Kim @ LUNAIZ


This README was generated with ❤️ by readme-md-generator