• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

raystack / frontier / 33670668290
50%
main: 49%

Build:
Build:
LAST BUILD BRANCH: fix-dont-store-documents-in-flow-when-consent-disabled
DEFAULT BRANCH: main
Ran 02 Sep 2026 07:05PM UTC
Jobs 1
Files 305
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Sep 2026 06:27PM UTC coverage: 49.614% (+0.4%) from 49.247%
33670668290

Pull #1912

github

rohanchkrabrty
feat(authenticate): separate login from signup with an explicit intent

Frontier cannot tell a signup from a login: every strategy ends at
getOrCreateUser, which returns the existing user or creates one, so a
login with an unknown address silently creates the account.

Adds a FlowIntent carried on flow metadata and both gates from the RFC's
intent by strategy table. StartFlow is the fast path, rejecting a login
with no account or a signup with one before an OTP is sent, for the
strategies that know the email that early. User creation is the gate that
matters, since every strategy reaches it and OIDC has no email until the
callback.

The intent also replaces the passkey guess: signup picks the register
ceremony, login picks the login ceremony. An unspecified intent keeps
today's create-or-get and today's guess, so existing clients and
deployments are unaffected.

Flow.Metadata is existing JSONB, so no migration. The accessors parse
rather than assert, since JSONB does not return the types it was given,
and are nil-receiver-safe so the caller without a flow needs no branch.

Error mapping at the handlers and all consent work follow separately.

Refs docs/rfcs/0002-explicit-consent-at-signup.md

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VW3nysiE4H83VQk6BroMYc
Pull Request #1912: feat(authenticate): separate login from signup with an explicit intent

118 of 122 new or added lines in 3 files covered. (96.72%)

20157 of 40628 relevant lines covered (49.61%)

15.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
47.13
20.71% core/authenticate/service.go
1
52.71
0.0% core/authenticate/authenticators.go
Jobs
ID Job ID Ran Files Coverage
1 33670668290.1 02 Sep 2026 07:05PM UTC 305
49.61
GitHub Action Run
Source Files on build 33670668290
  • Tree
  • List 305
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1912
  • PR Base - feature/featconsent-add-the-user_consents-table-with-immutability (#33670669024)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc