Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hexagon6/sveltekit-passkey-example

Sveltekit & passkeys, no more passwords!
https://github.com/hexagon6/sveltekit-passkey-example

authentication backend-auth example-app frontend-authentication no-more-passwords nodejs passkeys sveltekit web

Last synced: 2 months ago
JSON representation

Sveltekit & passkeys, no more passwords!

Awesome Lists containing this project

README

        

# svelte-passkey-example

## description

This repository demonstrates usage and implementation of [passkeys](https://passkeys.dev/) with [sveltekit](DEVELOP.md)

## setup

Copy the file `.env.example` to `.env` and fill in your values for the empty variables.

### environment variables for development:

e.g.

```.env
ORIGIN=localhost
EXPECTED_ORIGIN=http://localhost:5173
```

### environment variables for production:

e.g.

```.env
ORIGIN=auth.mydomain.org
EXPECTED_ORIGIN=https://auth.mydomain.org
```

## scope

experimentation, prototyping, not meant (yet!) for production usage

## status

This is a prototype at the current state in order to try out passkeys / passwordless login.

Please do not blame me if it does not work on your setup, it might require different settings for fido2Create & fido2Get functions.

This example only works with passkeys. Tested was a Yubico Yubikey 5.
I would like to test more. If you can reproduce it with another (e.g. Nitrokey), let me know by creating an issue.

## inspiration

Thanks to

- https://github.com/OwnID/passkeys/tree/develop
- https://simplewebauthn.dev/

it is possible to do passwordless login with the code provided here.