Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Ellis
Ellis

Posted on • Edited on

     

Laravel Sanctum Authentication in Vue.js SPA Application

Laravel Sanctum is another laravel official package from Laravel Framework. Until 20 March 2020, it was Laravel Airlock. Due to trademark dispute, Taylor Otwell renames it with Laravel Sanctum and confirmed it with ablog post. It's a lightweight authentication package for working on SPA (Single Page Application) or simple API. Before discovering the package, let's have a look at what Laravel Sanctum offers us.

Laravel Sanctum features

  • Simple API auth
  • Issuing API Tokens
  • Token Abilities
  • Revoking Tokens
  • SPA auth with CSRF protection
  • Authenticating Mobile Applications

Tutorial: Laravel Sanctum Authentication in Vue.js SPA Application

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
begueradj profile image
Billal BEGUERADJ
I am Billal Begueradj.I am interested in everything related to Information Security and Software development.
  • Joined

Nice and practical explanation.
Thank you.

Billal BEGUERADJ

P.S.
Quoted from doc:

"In order to authenticate, your SPA and API must share the same top-level domain. However, they may be placed on different subdomains."

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromEllis

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp