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

@ahhaohho/auth

v1.1.5

Published

AhhaOhho API 요청에 대한 인증/인가 패키지

Readme

ahhaohho 인증/인가 모듈

AhhaOhho 서비스를 위한 API 키 또는 Bearer 토큰의 인증과 Role & Permission 기반 인가 기능을 제공하는 AhhaOhho 전용모듈입니다.

설치

npm을 사용하여 패키지를 설치할 수 있습니다:

npm install @ahhaohho/auth

사용 방법

authenticate와 authorize 함수를 import하여 사용할 수 있습니다:

const { authenticate, authorize } = require('@ahhaohho/auth');

// 인증 미들웨어 사용 예시
app.use(authenticate('https://auth.url.com'));

// 인가 미들웨어 사용 예시
app.use(authorize('https://auth.url.com'));

주요 기능

  • authenticate: API 키 또는 Bearer 토큰을 사용한 인증
  • authorize: Role & Permission 기반 인가

예제

Express.js와 함께 사용하는 예제:

const express = require('express');
const { authenticate, authorize } = require('@ahhaohho/auth');

const app = express();
const authUrl = "https://membership.ahhaohho.com/"

const setupRouter = (app) => {
  app.get('/challenge/getContents', authenticate, authorize(authUrl), getRoute)
}

app.listen(3000, () => console.log('서버가 3000번 포트에서 실행 중입니다.'));

요청 헤더

클라이언트는 다음 헤더를 사용하여 인증 정보를 전송해야 합니다:

  • API 키 인증: x-api-key, device-id
  • Bearer 토큰 인증: authorization

작성자

정두수 ([email protected])


이 README는 프로젝트의 기본적인 정보를 제공합니다. 작성자에 문의해 주세요.