Skip to content

Commit b5b2e93

Browse files
committed
Update to Laragear WebAuthn v3
1 parent d4b0bee commit b5b2e93

13 files changed

Lines changed: 182 additions & 454 deletions

File tree

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,13 @@ composer require codebarista/nova-webauthn
1111

1212
## 2. Setup
1313

14-
Run the following command to publish controllers, migrations, and scripts from steps 1-4 of
15-
the [Laragear Setup Guide](https://github.com/Laragear/WebAuthn?tab=readme-ov-file#set-up).
14+
Run the following command to publish and run the Laragear WebAuthn migrations.
1615

1716
```shell
1817
php artisan codebarista:webauthn-setup
1918
```
2019

21-
## 3. Publish
22-
23-
```shell
24-
php artisan vendor:publish --tag="js" --provider="Codebarista\NovaWebauthn\ToolServiceProvider"
25-
```
26-
27-
## 4. Implementation
20+
## 3. Implementation
2821

2922
Add the `WebAuthnAuthenticatable` contract and the `WebAuthnAuthentication` trait to the User class, or any other that
3023
uses authentication.
@@ -64,6 +57,8 @@ class User extends Resource
6457
}
6558
```
6659

60+
**Note: Make sure that passkey registration and login are done via a secure https connection.**
61+
6762
## License
6863

6964
The MIT License (MIT). Please see [License File](LICENSE) for more information.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"require": {
2020
"php": "^8.2",
21-
"laragear/webauthn": "^1.2",
21+
"laragear/webauthn": "^3.0",
2222
"laravel/nova": "^4.0"
2323
},
2424
"autoload": {

dist/js/tool.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tool.js.LICENSE.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"private": true,
3-
"scripts": {
4-
"dev": "npm run development",
5-
"development": "mix",
6-
"watch": "mix watch",
7-
"watch-poll": "mix watch -- --watch-options-poll=1000",
8-
"hot": "mix watch --hot",
9-
"prod": "npm run production",
10-
"production": "mix --production",
11-
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci"
12-
},
13-
"devDependencies": {
14-
"@vue/compiler-sfc": "^3.2.22",
15-
"laravel-mix": "^6.0.41",
16-
"postcss": "^8.3.11",
17-
"vue-loader": "^16.8.3"
18-
},
19-
"dependencies": {}
2+
"private": true,
3+
"scripts": {
4+
"dev": "npm run development",
5+
"development": "mix",
6+
"watch": "mix watch",
7+
"watch-poll": "mix watch -- --watch-options-poll=1000",
8+
"hot": "mix watch --hot",
9+
"prod": "npm run production",
10+
"production": "mix --production",
11+
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci"
12+
},
13+
"devDependencies": {
14+
"@laragear/webpass": "^2.0",
15+
"@vue/compiler-sfc": "^3.0",
16+
"laravel-mix": "^6.0",
17+
"postcss": "^8.0",
18+
"vue-loader": "^17.0"
19+
}
2020
}

0 commit comments

Comments
 (0)