fix(templates): handle optional PKCE in retry links

The "Request a new code" and "Try Again" links were outputting
code_challenge=None when PKCE was not used, causing the retry
to fail with validation errors.

Now only includes PKCE parameters if code_challenge has a value.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-17 15:40:39 -07:00
parent 404d723ef8
commit d63040b014
6 changed files with 284 additions and 4 deletions

2
uv.lock generated
View File

@@ -431,7 +431,7 @@ wheels = [
[[package]]
name = "gondulf"
version = "1.0.0rc1"
version = "1.0.1"
source = { editable = "." }
dependencies = [
{ name = "aiosmtplib" },