This is a sample implementation of the Corbado web-js package integrated into a web application built with SolidJS.
Please see the full blog post to understand the detailed steps needed to integrate passkeys into SolidJS apps.
- src/components/Auth/Auth.jsx: Component for the sign-up / login screen
- src/components/Profile/Profile.jsx: Component for the user profile information shown after successful authentication
- src/App.jsx: Main app component that sets up routing for the SolidJS web app
- src/index.jsx: Entry point of the application
- Follow the steps in Getting started to create and configure a project in the Corbado developer panel.
- Add your project's ID to an environment file as shown in the
.env.example
file. - Ensure you have Node.js and npm installed to run the application.
-
Install Dependencies:
npm install
-
Run the Project Locally:
npm run dev
Your application will start at http://localhost:3000
. You can now see the authentication UI and test the passkey login functionality.