DEV Community

Ellis
Ellis

Posted on • Edited on

1 2

Create Token-Based Authentication with Laravel Sanctum for Vue.js Application

Laravel Sanctum provides a featherweight authentication system. This package provides authentication in two ways, one is "SPA Authentication" and the second is "API Token Authentication". We have already seen SPA Authentication using the Sanctum package. Now In this video, you will learn how to build a token-based authentication system using Vue.js and Laravel Sanctum. We are going to create separate projects for the frontend (in Vue.js), and for the backend (in Laravel), that will interact with one another through a REST API.

Let's dive in!

API Token Authentication using Laravel Sanctum & Vue.js

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay