Category Archives: Fullstack Development
Simple way to configure vue.js (axios, pinia) to work with Laravel Sanctum Token based auth
Laravel Sanctum gives a simple mechanism of authentication for SPAs (Single Page Applications). There are basically two ways Sanctum can be used. 1. API Tokens: Sanctum can generate token for an authenticated user and that token can be used everytime for subsequent requests. 2. SPA Authentication: For this functionality, Sanctum avoids the use of tokens…