Skip to content

Add Custom Auth react example - #6957

Draft
vitorfigmgs wants to merge 6 commits into
anomalyco:devfrom
vitorfigmgs:feat/add-custom-auth-react-example
Draft

Add Custom Auth react example#6957
vitorfigmgs wants to merge 6 commits into
anomalyco:devfrom
vitorfigmgs:feat/add-custom-auth-react-example

Conversation

@vitorfigmgs

@vitorfigmgs vitorfigmgs commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

⚠️ Dependencies
This example relies on two pending PRs. It should not be merged until these are approved and released:
Open Auth Custom UI
SST CustomAuth Component


Overview

This PR adds a complete working example at examples/aws-auth-custom-react-ui.

It demonstrates how to build, deploy, and link a fully customizable React authentication UI using OpenAuth and the new sst.aws.CustomAuth component.

Usage Instructions

Follow these steps to run and test the example locally:

1. Compile the SST project

bun run setup

2. Navigate to the example directory

cd examples/aws-auth-custom-react-ui

3. Install dependencies

npm install

4. Run the dev server

go run ../sst/cmd/sst dev

5. Test the Auth Flow
Explore the custom auth pages in your browser. You can create an account, sign in, and test the forgot password page to see the custom UI in action.

6. Deploy to a homolog environment

go run ../sst/cmd/sst deploy --stage homolog

@vitorfigmgs
vitorfigmgs force-pushed the feat/add-custom-auth-react-example branch from 619bf48 to 459da6d Compare July 30, 2026 21:13
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