Tag: authorization
2 articles
- Vue Admin Middleware: Role-Based Access Control
A Vue 3 middleware function with TypeScript to check if the authenticated user has admin privileges before allowing access to admin routes.
- Basic Authorization with Admin Roles
How to set up basic authorization in a Laravel 11 API and Vue 3 SPA, adding an is_admin field to control access to protected content.