Skip to content

Commit

Permalink
Update README.md (#88)
Browse files Browse the repository at this point in the history
Fix the withouMiddleware call. The middleware is not excluded when doing
```php
WebAuthnRoutes::register()->withoutMiddleware(VerifyCsrfToken::class);
```
  • Loading branch information
nooxx authored Jul 19, 2024
1 parent 15b29db commit a22459f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ use Laragear\WebAuthn\Http\Routes as WebAuthnRoutes;
Route::view('welcome');

// WebAuthn Routes
WebAuthnRoutes::register()->withoutMiddleware(VerifyCsrfToken::class);
Route::withoutMiddleware([VerifyCsrfToken::class])->group(function () {
WebAuthnRoutes::register();
});
```

> [!TIP]
Expand Down

0 comments on commit a22459f

Please sign in to comment.