Skip to content

feat(embedded): add /e/authorize email OTP flow - #1075

Open
pmathew92 wants to merge 8 commits into
SDK-11058from
feat/SDK-11336
Open

pmathew92 wants to merge 8 commits into
SDK-11058from
feat/SDK-11336

Conversation

@pmathew92

@pmathew92 pmathew92 commented Sep 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds EmbeddedAuthClient with the full multi-step embedded /e/authorize flow: authorize, identifyEmail, identifyPhone, challengeEmail, verifyOtp
  • Implements the continuation-as-error model — non-terminal steps complete through EmbeddedAuthException carrying a rotated auth_session and nextActions; verifyOtp is the terminal step that yields Credentials
  • Fixes scope omission: authorize() now accepts scope (default "openid profile email offline_access") and optional audience so the token exchange returns an id_token
  • Converts authorizeUrl to a lazy property to avoid recomputing the URL on every step

@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 6d65ba20-58d7-437f-87ed-24b8250e5ca8

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

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.

@pmathew92
pmathew92 changed the base branch from v5_development to SDK-11058 September 21, 2026 10:31
@pmathew92
pmathew92 added this pull request to stack #1076 September 21, 2026 15:32
@pmathew92
pmathew92 marked this pull request as ready for review September 22, 2026 04:45
@pmathew92
pmathew92 requested a review from a team as a code owner September 22, 2026 04:45
@pmathew92 pmathew92 changed the title feat(embedded): add /e/authorize email OTP flow with sample app feat(embedded): add /e/authorize email OTP flow Sep 22, 2026

This branch has not been deployed

No deployments
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