For a full walk-through of how to get up and running with a sign-up and login flow using Stytch, including page router instructions, check out our Quickstart Guide. The instructions below assume you are using app router.Documentation Index
Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Create a Stytch context component
Create a new StytchContext client component.
Initialize the Stytch client, passing in your Project’s
public_token from the Project Overview of the Stytch Dashboard.
Pass the Stytch client to the <StytchB2BProvider> component.StytchContext.jsx
Wrap your application in <StytchB2BProvider>
Next, pass the Stytch client to the
<StytchB2BProvider> component at the root of your application, making it accessible to all child components.layout.jsx
Add your login flow
You have now initialized the Stytch client, and can add the
<StytchB2B> pre-built login component to get a robust, end-to-end login flow working with just a simple config.