Skip to content

feat(oauth): auto-skip consent for recent re-auth, drop prompt URL param#75

Merged
BK1031 merged 2 commits into
mainfrom
bk1031/feat-auto-consent-recent-auth
Jun 5, 2026
Merged

feat(oauth): auto-skip consent for recent re-auth, drop prompt URL param#75
BK1031 merged 2 commits into
mainfrom
bk1031/feat-auto-consent-recent-auth

Conversation

@BK1031
Copy link
Copy Markdown
Contributor

@BK1031 BK1031 commented Jun 5, 2026

  • Drop the `prompt` query parameter from the authorize flow (both backend read and frontend pass-through)
  • Always check the entity's recent logins for the exact client+scope set; return `prompt=none` when one exists within the last 24h, otherwise `prompt=consent`
  • Pushes the time-window filter down to the core via `after=` so we don't need to parse `created_at` in oauth

BK1031 added 2 commits June 5, 2026 00:17
Authorize now ignores the prompt query parameter. Instead, it looks up
the user's most recent login for the exact client+scope set and returns
prompt=none when one exists within the last 24h, prompting otherwise.
The frontend no longer reads or forwards prompt from the URL.
@BK1031 BK1031 merged commit 24e1a23 into main Jun 5, 2026
10 checks passed
@BK1031 BK1031 deleted the bk1031/feat-auto-consent-recent-auth branch June 5, 2026 07:24
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