Laravel + Inertia (Vue JS) - how to handle API tokens?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/laravel

Our great sponsors
  • Cloudways - Managed Cloud Hosting Platform
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • jwt-auth

    🔐 JSON Web Token Authentication for Laravel & Lumen

    You can make a login route in api.php and then return the token if you want simpler token for authentication might I suggest that you use jwt token it's simple and it's docs show you how to use the jwt token https://github.com/tymondesigns/jwt-auth if you want something complex then sanctum can help you for example you can give token different abilities if you want to create an auth token use auth()->user()->createToken(); To create a token

  • multiple-tokens-auth

    Adds the ability to use multiple tokens for the auth:api middleware.

  • Cloudways

    Managed Cloud Hosting Platform. Cloudways leverages advanced technology and powerful servers. Cloudways is a one-click managed cloud hosting platform that provides cloud application and server management solutions. Get up to 2 months of Free Hosting by using code "LIBHUNT" and get a $30 free hosting credit.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts