feat: move auth and server helpers out of Next.js into a plain Node package
メンテナーはふだん 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 の本文から書いたものです。
説明
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/coreauth behavior is unchanged for existing users.- Usage is documented for a non-Next.js server.
- 主要言語
- TypeScript
- スター
- 1.6k
- フォーク
- 157
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 101
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wpengine/faustjs のほかの issue
-
[Area] Compatibility Breaking Change Needs Discussion
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
RFC: Deprecate `@faustwp/block-editor-utils`対応中かも @theodesp が 9 日前に担当しました。 オープンNeeds Discussion
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
wpengine/faustjs#2640 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Area] WordPress Plugin [Type] Feature Needs Discussion php
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
[Area] WordPress Plugin [Type] Feature Needs Discussion php Security
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
[Area] Core dependencies
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
wpengine/faustjs#2192 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
wpengine/faustjs の issue をすべて見る
似ている issue
-
bug priority: P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
mattermost/compass-design#106 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openclaw/openclaw#176671 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
nordcraftengine/nordcraft#1400 ·
メンテナーはふだん 1 日以内に返信