Skip to content

release: auth-client で ID トークンに email を求めない - #25

Merged
t1nyb0x merged 1 commit into
mainfrom
develop
Oct 10, 2026
Merged

t1nyb0x merged 1 commit into
mainfrom
develop

Conversation

@t1nyb0x

@t1nyb0x t1nyb0x commented Oct 10, 2026

Copy link
Copy Markdown
Member

develop の 1 コミットを main へ取り込む。

変更

release-please が auth-client の 1.1.1 (fix) のリリース PR を作る。ほかのパッケージは変わらない。

このPRは Merge commit で main へ取り込む。

🤖 Generated with Claude Code

lumorphia/accounts (Better Auth 1.7.7 の oauth-provider) は、アクセストークンを出すときは
email などの標準の claim を ID トークンに入れず、UserInfo でだけ返す (OIDC Core 5.4)。
auth-client は ID トークンの email と email_verified を必須にしていたので、本物の accounts を
相手にすると callback で必ず `Invalid Lumorphia claim string` になった。テストの発行元も
ID トークンに email を入れていて、ずれに気づけなかった。

ID トークンでの email の検査をやめ、UserInfo の email・email_verified の検査 (もとからある) に
任せる。テストの発行元は本物と同じく ID トークンに email を入れない形にし、email が無い・
email_verified が無い UserInfo を拒むことを確かめる。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@t1nyb0x
t1nyb0x merged commit 27ed9b3 into main Oct 10, 2026
3 checks passed
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