---
id: line-redirect-uri-consistency
trigger: "when changing LINE OAuth authorization or callback configuration"
confidence: 0.9
domain: "security"
source: "claude-code-memory-import"
---

# Keep LINE OAuth redirect URIs identical

## Action

- Ensure the frontend authorization `redirect_uri`, backend token-exchange `redirect_uri`, and LINE Console callback allowlist entry are exactly identical.
- Verify the active deployment environment before changing the URI; do not trust a dated memory value.
- Preserve both supported flows: backend callback for system-browser/App-scheme login and WebView interception that sends the code to `/oauthLogin`.

## Evidence

- Imported from Claude Code project memory `project-017-oauth-login.md` on 2026-08-10.
- URI drift previously caused `redirect_uri_mismatch` risk.
