This is a demo of using the svelte-passkey-component with Astro.
This project demonstrates how to integrate the svelte-passkey-component library into an Astro application for passkey-based authentication.
Inside of this Astro project, you'll see the following folders and files:
/
āāā public/
ā āāā favicon.svg
āāā src/
ā āāā components/
ā ā āāā PasskeyAuth/
ā ā āāā lib/
ā ā āāā components/
ā ā āāā i18n/
ā ā āāā server/
ā ā āāā PasskeyAuth.svelte
ā āāā layouts/
ā ā āāā Layout.astro
ā āāā lib/
ā ā āāā adapters/
ā āāā pages/
ā āāā api/
ā ā āāā auth/
ā āāā index.astro
āāā package.json
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Check out Astro documentation or join their Discord server.