Support the ongoing development of Laravel.io →

23 Threads

Laravel auth;sanctum middleware does not stop invalid token

the problem I want to solve is to protect an API route so only allowed servers with a token can acce...

amethgaye, justany liked this thread

2 Likes
0 Replies

Using Laravel 11+Sanctum for my SPA at different domain ?

I have a complete SvelteKit project SPA at domain number one. "domainone.com" or locahost:...

0 Likes
0 Replies

user appears to be logged out when password is updated (fort

Hi there! I need help for the following issue Laravel Version : v11.7.0 PHP Version : 8.2 Database D...

0 Likes
0 Replies

CORS Laravel Error Using Vue.js to Download pdf from laravel

Access to XMLHttpRequest at 'http://localhost:8000/api/cetak-sp-1-suratperintah1' from origin 'http:...

sieghartsaladdin liked this thread

1 Likes
0 Replies

Auth guard [sanctum] is not definedlaravell

Sanctum Version 3.2 Laravel Version 10.23 PHP Version 8.2 Database Driver & Version MySQL 8 for...

0 Likes
0 Replies

Laravel API - NextJS Starter Kit cant login / authenticate

Hi, i am having trouble with sessions in laravel api with sanctum deployed on railway, authenticatin...

0 Likes
0 Replies

Laravel - Passkeys - 1Password - Passage

We got an already built React front, Laravel back webapp, using Sanctum. We need to integrate Passag...

amite liked this thread

1 Likes
0 Replies

laravel + sanctum, SPA authentication and testing it

Hello everyone. I'm trying to make a small SPA using vue.js and laravel sanctum. I did everything ac...

0 Likes
0 Replies

Laravel Sanctum Angular Authentication 419 error code

I'm trying to setup an authentication system using Laravel Sanctum and Fortify for the back-end and...

0 Likes
0 Replies

Laravel will share sessions to all subdomains?

I currently have an application running Laravel as an API and a SPA app as the frontend, they reside...

0 Likes
2 Replies

Date format on personal access token

I have a problem when I want to authenticate myself with Laravel Sanctum, when I generate a login th...

0 Likes
0 Replies

Sanctum unauthenticated on production, works locally

Hey, Sanctum works fine on my local machine, but has authentication problem on production. Any sugge...

0 Likes
2 Replies
Solved

how to pass bearer token (laravel sanctuml from vue js spa?

I have few API's with an 'auth/sanctum' middleware. I pass bearer token to access protected paths bu...

0 Likes
0 Replies

Sanctum with different connection

Hi We are working on project where multiple databases are connected. We have created connections i.e...

0 Likes
0 Replies

Authorization fails only on API routes

I'm trying to use auth:sanctum on the api route, but it returns "Not authenticated" even w...

0 Likes
1 Replies
Solved

Sactum Automatic Logout on user inactiviysanc

Hi, We are using santrum for mobile App APIs, We want to put the functionality of automatic log out...

0 Likes
1 Replies

Sanctum refresh token for react?

Hello everyone, i have question laravel sanctum, i'm creating authentication for spa & mobile ap...

0 Likes
1 Replies

CRUD registers all data in the table as NULL.php

I'm developing a CRUD with laravel sanctum, but in validation some of the fields need to accept NULL...

0 Likes
3 Replies

Create Json API with Auth using Laravel Sanctum

I am trying to create an API for getting all posts and creating a post. But the route can only be as...

0 Likes
1 Replies

Wrong user data with laravel sanctum

When I login by API and create token for user returning data are correct, but when I use that token...

0 Likes
1 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.