Scute UI with your react app, you can do so using the @scute/ui-react package. This package would expose the pre-built Auth and Profile components which you can use to easily integrate Scute to your current app.
Head over to the example project repo to clone and run this example project and check out the type docs for more scuteClient methods.
To get started, install our React SDKs with your favorite package manager:
Terminal
Initialize the Scute client
First initialize the Scute client using thecreateClient method exposed by @scute/react package:
Wrap your React app with Scute AuthContextProvider
To be able to use theuseScuteClient and useAuth hooks, wrap your app inside the Scute AuthContextProvider:
Add the Scute pre-built UI
First, create a component to show to your authenticated users:AuthenticatedView based on the session status:
App.jsx to render the ScuteUI inside the AuthContextProvider:
With session (Profile)
With session (UserButton)