Skip to content

feat: user:pre_registration#77

Merged
DanielRivers merged 1 commit intomainfrom
feat/onUserPreRegistrationEvent
Sep 16, 2025
Merged

feat: user:pre_registration#77
DanielRivers merged 1 commit intomainfrom
feat/onUserPreRegistrationEvent

Conversation

@DanielRivers
Copy link
Member

Explain your changes

Adds the user:pre_registration workflow type and payload

Checklist

🛟 If you need help, consider asking for advice over in the Kinde community.

@coderabbitai
Copy link

coderabbitai bot commented Sep 16, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds a new pre-registration workflow event type, updates the WorkflowTrigger enum with UserPreRegistration, and extends the WorkflowEvents union to include the new onUserPreRegistrationEvent. The new event type defines request and context shapes for pre-registration, including auth URL params with state and authentication context fields.

Changes

Cohort / File(s) Summary
Workflow types and events
lib/types.ts
Added WorkflowTrigger.UserPreRegistration, introduced exported type onUserPreRegistrationEvent with request/context structure, and extended WorkflowEvents union to include onUserPreRegistrationEvent.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor U as User
  participant C as Client App
  participant A as Auth Service
  participant W as Workflow Engine
  participant H as PreRegistration Handler

  U->>C: Initiate sign-up
  C->>A: Start auth (includes userAgent, ip, authUrlParams.state)
  A->>W: Trigger workflow (trigger=UserPreRegistration)
  W->>H: Invoke onUserPreRegistrationEvent(request, context)
  H-->>W: Return decision/data
  W-->>A: Workflow result
  A-->>C: Continue/redirect based on result
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • DaveOrDead
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/onUserPreRegistrationEvent

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bdd51bb and 77f57dd.

📒 Files selected for processing (1)
  • lib/types.ts (3 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@DanielRivers DanielRivers force-pushed the feat/onUserPreRegistrationEvent branch from 5b333ec to 77f57dd Compare September 16, 2025 23:16
@codecov
Copy link

codecov bot commented Sep 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@DanielRivers DanielRivers merged commit fe2d0b9 into main Sep 16, 2025
6 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