Skip to content

feat(oauth): add provider buttons + callback route to auth screens#44

Merged
Bccorb merged 2 commits into
mainfrom
feat/oauth-provider-ui
Jun 29, 2026
Merged

feat(oauth): add provider buttons + callback route to auth screens#44
Bccorb merged 2 commits into
mainfrom
feat/oauth-provider-ui

Conversation

@Bccorb

@Bccorb Bccorb commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Fixes #43.

What

Adds OAuth provider UI to the built-in auth screens, so apps using AuthRoutes get a working
OAuth login without hand-rolling it. The SDK already had the client methods
(listOAuthProviders, startOAuthLogin, finishOAuthLogin); this wires the UI and callback.

Changes

  • OAuthProviderButtons: lists configured providers (listOAuthProviders) as
    "Continue with " buttons on the sign-in view. Selecting one calls startOAuthLogin
    (with redirectUri = <origin>/oauth/callback), stashes the provider id in sessionStorage,
    and redirects to the IdP's authorizationUrl.
  • OAuthCallback + the /oauth/callback route: reads code/state from the URL and the
    stashed provider id, calls finishOAuthLogin, then lands the user on the app.

Tests

  • New unit tests for both components (render/empty, start+redirect, finish+navigate, missing params).
  • Existing Login tests updated to mock listOAuthProviders (the view now renders the buttons).
  • Full suite green (151 passing); coverage above thresholds.

Pairs with fells-code/seamless-auth-api#50 (OAuth provider config defaults), which the OAuth flow
depends on. The seamless verify harness adds a browser OAuth case on top of this.

Bccorb added 2 commits June 29, 2026 11:06
The sign-in view lists configured providers as 'Continue with <provider>'
buttons that startOAuthLogin and redirect to the IdP; a new /oauth/callback
route reads code/state and calls finishOAuthLogin, then lands on the app. Fixes #43.
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.

No OAuth provider UI / callback route in the SDK login flow

1 participant