Skip to content

This is a sample repository of a Svelte app that offers passkey authentication.

Notifications You must be signed in to change notification settings

zenoboros/example-passkeys-svelte

 
 

Repository files navigation

Svelte Passkey-First Authentication Example with Corbado

This is a sample implementation of the Corbado web component being integrated into a web application built with Svelte.

Please see the full blog post to understand the detailed steps needed to integrate passkeys into Svelte apps.

File structure

  • src/routes/+page.svelte: component for the sign up / login screen
  • src/routes/profile/+page.svelte: component for the user profile information that is shown after successful authentication
  • src/routes/+layout.server.js: file to switch SSR off (we're working on SSR support already)
  • .env: add Corbado project ID as environment variables that you can obtain from Corbado developer panel

Setup

Prerequisites

Please follow the steps in Getting started to create and configure a project in the Corbado developer panel.

You need to have Node and npm installed to run it.

Usage

Run

npm i

to install all dependencies.

Finally, you can run the project locally with

npm run dev

About

This is a sample repository of a Svelte app that offers passkey authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 46.2%
  • JavaScript 36.7%
  • HTML 10.0%
  • TypeScript 7.1%