An example application demonstrating how to authenticate users with AuthKit's React SDK.
You will need a WorkOS account.
-
In the WorkOS dashboard, head to the Redirects tab and create a sign-in callback redirect for
http://localhost:5173
. -
Navigate to the "Authentication" page and click the "Configure Sessions" button. Add
http://localhost:5173
to the list of origins to allow clients sessions from. Click "Save." -
Navigate to the API keys tab and copy the Client ID. Rename the
.env.local.example
file to.env.local
and supply your Client ID. -
Run the following command and navigate to http://localhost:5173.
npm run dev