Questions tagged [sanctum]

65 questions
-1
votes
1 answer

Laravel sanctum unauthenticated issue on Next js SPA, how to solve it?

I have read too many solutions but still not solved my issue. I am using Laravel (sanctum) in backend and Next js in front-end. Laravel version: 9 Backend Url: http://127.0.0.1:8000 Front-End url: http://localhost:3000 Cors.php 'paths' =>…
-1
votes
1 answer

Remove token in frontend using Vue JS after deleting it from database in backend with Laravel?

I'm developing an application with Vue 3 and Laravel 9. I did all login, registration and logout. However, I had an idea to keep the session unique per browser. I delete all tokens on user login if they exist. That way I can have front-end control…
Mateus
  • 1
  • 3
-1
votes
1 answer

what the best starter kit suited with SPA and api with sanctum tokens?

I want to make a restful api using Laravel so I can use it with mobile application and SPA I also want to use sanctum to authenticate tokens. what is the most approperiate starter kit for my needs? I tried Breeze but it seems doesn't suit with…
Lana Hanna
  • 91
  • 1
  • 9
-2
votes
1 answer

Laravel + GatsbyJS app, using auth:sanctum to manage logging in, all other users received server 500 error but my login is fine?

So I have an app (laravel backend, GatsbyJS frontend) that I'm helping to work on. A month ago, all users were able to log in with no issues. But I found out that now, all users can't log in in production (apart from me). login.jsx file const…
pokedev8
  • 17
  • 5
1 2 3 4
5