https://github.com/plmercereau/vue-nhost-webauthn
https://github.com/plmercereau/vue-nhost-webauthn
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/plmercereau/vue-nhost-webauthn
- Owner: plmercereau
- Created: 2022-11-16T14:47:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-16T14:47:58.000Z (over 2 years ago)
- Last Synced: 2025-02-07T20:30:42.253Z (4 months ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue, Nhost, and Security keys
1. install the dependencies
```sh
pnpm i
```2. Run the Nhost CLI
```sh
nhost dev --no-browser
```3. On a separate terminal, start the web app:
```sh
pnpm dev
```4. Browse to `http://localhost:5173/`, **not 127.0.0.1** as WebAuthn requires the `localhost` origin
## How it's configured in `nhost/config.yaml`
```yaml
auth:
webauthn:
enabled: true
rp_name: Example App # In the cloud, this is the application name
client_url: http://localhost:5173 # The frontend url. Required by Webauthn
email:
signin_email_verified_required: false # Authenticate straight after adding the security key, instead of having to click on the verification email
```