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

@next-auth-oauth/feishu

v0.0.3

Published

`next-auth-oauth` 是一个基于 Next.js 和 NextAuth 的增强插件,用于简化和增强授权登录的处理。该插件提供了丰富的功能,包括第三方登录绑定、账户管理等,使得授权流程更加高效和灵活。

Readme

使用飞书登录

网页应用登录是基于 OAuth 2.0 标准协议实现的,通过飞书账号授权登录第三方应用的能力。

1. 创建应用

先登录到飞书开放平台后台:https://open.feishu.cn/app 然后创建企业网页应用

2. 配置网页登录回调

  1. 点击应用进入应用配置,选择左侧的“安全设置”
  2. 填写重定向地址: 'http://YOUR_NEXT_AUTH/api/auth/callback/feishu'
  3. 本地调试可以用 http://localhost:3000/api/auth/callback/feishu 作为重定向地址

3. 配置 NextAuth.js

import NextAuth from 'next-auth'
import { Feishu } from '@next-auth-oauth/feishu'

export default NextAuth({
  providers: [Feishu],
})

4. 配置环境变量

.env 文件中添加以下内容:

# 飞书登录
AUTH_FEISHU_ID=cli_a7acxxxxxxxxxxxx
AUTH_FEISHU_SECRET=O7YLGxxxxxxxxxxxxxxxx

5. 完成登录