Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/hexagon6/sveltekit-passkey-example
- Owner: hexagon6
- Created: 2023-08-21T09:05:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-22T10:23:46.000Z (11 months ago)
- Last Synced: 2024-05-21T01:07:54.888Z (9 months ago)
- Topics: authentication, backend-auth, example-app, frontend-authentication, no-more-passwords, nodejs, passkeys, sveltekit, web
- Language: JavaScript
- Homepage:
- Size: 161 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.