Tag: authentication
5 articles
- Vue Guest Middleware: Redirecting Logged-In Users
A Vue 3 middleware function with TypeScript that redirects authenticated users away from guest-only pages like login and register.
- Vue Auth Middleware: Protecting Routes
A Vue 3 middleware function with TypeScript to check if a user is authenticated before displaying a protected route.
- Vue 3 SPA Authentication with Sanctum
How to set up full authentication in a Vue 3 SPA using Laravel Sanctum, Pinia, and the Composition API.
- Laravel 11 API Authentication with Sanctum and Fortify
How to set up full authentication using Laravel Sanctum and Fortify including CORS, email verification, and password resets.
- Setting Up Laravel 11 with Sanctum and Fortify
How to set up Laravel 11 with Sanctum and Fortify for use as a headless API that your Vue SPA can consume.