Skip to content

docs: clarify social authentication trust boundaries - #51

Merged
rdlabo merged 2 commits into
mainfrom
fix/social-auth-boundaries
Sep 7, 2026
Merged

docs: clarify social authentication trust boundaries#51
rdlabo merged 2 commits into
mainfrom
fix/social-auth-boundaries

Conversation

@rdlabo

@rdlabo rdlabo commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Document the verified Firebase identity prerequisite, provider subject matching, audience validation, and sign-in-provider policy for the shared Apple and Google helpers. Application-specific login/link policy remains with consumers. Validation: typecheck, lint, and all 508 tests passed.


Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread packages/hono-kit/README.md Outdated

const subject = await verifyGoogleIdentityToken(googleIdToken, GOOGLE_CLIENT_IDS);
// login: require active Google sign-in
if (!hasFirebaseProviderIdentity(userRecord, 'google.com', subject, true)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟥 ログイン例が未検証の値を認証済みトークンとして扱う

ログイン例はユーザーレコードを照合へ渡す(hasFirebaseProviderIdentity)ため、記載どおりの実装では認証済みトークンという前提が守られません。

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@rdlabo
rdlabo merged commit 3289ea6 into main Sep 7, 2026
8 checks passed
@rdlabo
rdlabo deleted the fix/social-auth-boundaries branch September 7, 2026 23:45
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

npm beta published

CI passed for the merge commit 3289ea609bb4. Install the immutable versions with:

npm install @rdlabo/workers-hono-kit@0.12.3-beta.pr51.sha3289ea609bb4 @rdlabo/workers-timezone@0.12.3-beta.pr51.sha3289ea609bb4 @rdlabo/workers-mysql@0.12.3-beta.pr51.sha3289ea609bb4 drizzle-orm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant