- Notifications
You must be signed in to change notification settings - Fork0
Node.js (Express) repository of a sample app that offers passkey authentication.
corbado/example-passkeys-nodejs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a sample implementation of frontend and backend where the Corbado Node.js SDK and Web-js components areintegrated in an Express application.
├── ...├── .env # Environment variables for the application├── src │ ├── app.ts # Application Entrypoint│ ├── routes.ts # Defines our routes │ ├── authController.ts # Handles all of our endpoints│ └── userService.ts # Service to manage User data└── ...Please follow ourGetting started page to create andconfigure a project in thedeveloper panel.
Use the values you obtained above to configure the following variables inside.env:
- CORBADO_PROJECT_ID: The project ID.
- CORBADO_API_SECRET: The API secret.
- CORBADO_FRONTEND_API: The frontend API URL.
- CORBADO_BACKEND_API: The backend API URL.
Use the following command to install all dependencies:
npm iNow, you're ready to run the app like this:
npm run startAfter step 2 your local server should be fully working.
If you now visithttp://localhost:3000, you should be seeing our authentication UI.
Create an account and take a look at the profile page under/profile you'll be forwarded to.
About
Node.js (Express) repository of a sample app that offers passkey authentication.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.