Skip to content

feat(api): support organization-scoped sign-in tickets - #815

Closed
swolfand wants to merge 1 commit into
mainfrom
sam/mobile-591-ticket-sign-in-org
Closed

feat(api): support organization-scoped sign-in tickets#815
swolfand wants to merge 1 commit into
mainfrom
sam/mobile-591-ticket-sign-in-org

Conversation

@swolfand

@swolfand swolfand commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • route Auth.signInWithTicket through the canonical typed ticket strategy
  • document that backend-issued organization-scoped tickets activate that organization and synchronize Clerk.sessionFlow
  • add regression coverage for ticket request parameters and active-organization client synchronization

Related work

Testing

  • ./gradlew :source:api:test
  • ./gradlew spotlessCheck
  • ./gradlew :source:api:detekt
  • ./gradlew :source:api:lint
  • ./gradlew :samples:quickstart:assembleDebug

Notes

The repository-wide detekt task currently reports six pre-existing source/ui complexity violations. The changed source/api module passes detekt.

Linear: MOBILE-591

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 489244ca-af80-4291-8379-8e437fa29d8b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sam/mobile-591-ticket-sign-in-org

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

Copy link
Copy Markdown
Collaborator Author

Closing after re-evaluating the integration boundary. org_id is carried in the backend-issued ticket, so the native SDK request remains strategy=ticket plus the unchanged ticket value. Existing client synchronization already handles last_active_organization_id.

The backend end-to-end coverage in clerk/clerk_go#20464 verifies Organization activation, and the native usage is documented in clerk/clerk#2977. No native runtime change is required.

@swolfand swolfand closed this Jul 17, 2026
@swolfand
swolfand deleted the sam/mobile-591-ticket-sign-in-org branch July 21, 2026 20:10
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