Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK-2389 Provide alternative/simpler OAuth and SSO methods #250

Merged
merged 7 commits into from
Feb 4, 2025

Conversation

jhaven-stytch
Copy link
Contributor

Linear Ticket: SDK-2389

Changes:

  1. Adds new getTokenForProvider methods to B2C OAuth, B2B OAuth, B2B OAuth Discovery, and B2B SSO flows. This method allows developers to create "oneshot" login methods, similar to the iOS implementation, where we have a "start" flow that just returns a token, and can be combined/chained with the authenticate method. This makes configuring/using OAuth/SSO a bit simpler, as it removes the need for configuring activity result listeners and URL parsing the result.
  2. Adds methods to workbench apps for testing
  3. Updates OAuth tutorial to explain this new flow
  4. Bumps version

Notes:

Checklist:

  • I have verified that this change works in the relevant demo app, or N/A
  • I have added or updated any tests relevant to this change, or N/A
  • I have updated any relevant README files for this change, or N/A

@jhaven-stytch jhaven-stytch requested a review from a team as a code owner February 4, 2025 15:23
@jhaven-stytch jhaven-stytch requested review from alex-stytch and nidal-stytch and removed request for alex-stytch February 4, 2025 15:23
@jhaven-stytch jhaven-stytch merged commit 4d4cb20 into main Feb 4, 2025
4 checks passed
@jhaven-stytch jhaven-stytch deleted the jordan/SDK-2389-simplify-oauth-and-sso branch February 4, 2025 20:23
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.

2 participants