Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat: move auth and server helpers out of Next.js into a plain Node package

オープン
#2,564 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
nextjs, nodejs, typescript

調査の方向性

Start by tracing the token exchange, refresh, cookie handling, and authenticated request code in @faustwp/core, including its Next.js API routes and next/headers usage. Compare the planned @wpengine/hwp-auth package with the faustwp/v1/authorize flow. Done means plain Node works without Next.js, existing @faustwp/core behavior is unchanged, and non-Next.js usage is documented.

索引モデルが issue の本文から書いたものです。

説明

[Area] Core [Type] Feature Needs Discussion

The token exchange, refresh, and cookie handling in @faustwp/core is tied to Next.js (API routes, next/headers, the Next request/response types). Code outside Next.js (Astro, SvelteKit, a plain Node service, a CLI) can't reuse it, so each one reimplements the faustwp/v1/authorize flow.

Proposal

Extract the framework-agnostic parts into a plain Node package with no Next.js dependency:

  • Exchanging an authorization code or refresh token for tokens.
  • Refreshing tokens and tracking expiry.
  • Sending authenticated requests to WPGraphQL and REST.

@faustwp/core would then use this package and keep only the Next.js-specific glue. The roadmap's planned @wpengine/hwp-auth package looks like the right home, so this should line up with that work rather than add another package.

Acceptance

  • The package runs in plain Node with no Next.js installed.
  • @faustwp/core auth behavior is unchanged for existing users.
  • Usage is documented for a non-Next.js server.
主要言語
TypeScript
スター
1.6k
フォーク
157
平均マージ
1日 7時間
マージ済み PR(30日)
101

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wpengine/faustjs のほかの issue

wpengine/faustjs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。