All Questions
86 questions
2
votes
0
answers
89
views
How to use Cookies based session authentication (Sanctum from Laravel 11) with Vue3
I have two platforms: one built with pure PHP and session-based authentication, and the other using Laravel 11 and Vue 3.
We have the authentication logic implemented on the first platform, and I'm ...
0
votes
2
answers
83
views
How can I get registered user IDs in Laravel 10?
I have a web application TODO list. Users can add, modify, and delete tasks. Issue is that every user who log in to my web application can see all tasks that are created by other users. My idea is to ...
0
votes
0
answers
107
views
Unable to Authenticate User in Vue.js App Using Fetch Wrapper and Laravel API - 405 Method Not Allowed Error
Description
I'm encountering an issue with user authentication in my Vue.js application that communicates with a Laravel backend through an API. When attempting to log in, I receive a 405 Method Not ...
0
votes
0
answers
233
views
laravel Auth::logoutOtherDevices() doesn't redirect to login page?
i am using Auth::logoutOtherDevice() in laravel and it logs out user from other sessions but they need to refresh to get to login page . why Doesn't it redirect automatically to login page?
If not ...
0
votes
1
answer
57
views
How can I fetch the logged user from back-office to front-office via an Axios call?
I'm currently building a AirBnB replica as a final project for a Web Dev course.
I'm in a team and we're working on a front-office VueJS repo and back-office Laravel repo setup.
I'd like to set a ...
0
votes
2
answers
96
views
Laravel can not read the user ID
I am using laravel and vue for a project, I want to pass the user id to the table if the user is authenticated, but for some reason the authenticated user's id is not passed to the query giving this ...
0
votes
0
answers
167
views
Laravel Sanctum, VUE 3 Auth 401 unauthorized error
I'm struggling with unauthorized 401 error Request URL: http://localhost:8000/api/user Request Method: GET Status Code: 401 Unauthorized Remote Address: 127.0.0.1:8000 Referrer Policy: strict-origin-...
0
votes
1
answer
209
views
Login works but doesn't refresh the page
I am working on a laravel inertia with vuejs project doing the login and logout currently but everytime i login or logout i have to refresh the page manually so the profile name is displayed on top or ...
0
votes
1
answer
849
views
401 (Unauthorized) Laravel API VueJS
im using laravel 9 and vue js 3 composition API, i always get error 401 when i want to get login user data/ authenticated user, i have tried to find a way and use all the ways, from config settings, ...
0
votes
1
answer
497
views
Logging out from SPA using Laravel api
I have two applications: SPA built with Vuejs 3 and the API built with Laravel.
the SPA is running on 127.0.0.1:5173 and the api is running on 127.0.0.1:8000
The user can authenticate successfully but ...
0
votes
1
answer
904
views
Redirect to SPA after login with Laravel app
I have two applications : SPA builded with Vuejs 3 and the api builded with Laravel.
the SPA is running on 127.0.0.1:5173 and the api is running on 127.0.0.1:8000
User can authenticate successfully ...
1
vote
0
answers
21
views
logout and click back takes me to authenticated pages in Safari browser [duplicate]
I am working on a project where if the user logout and then click on back button in the browser, it takes me to the authenticated pages. From the code below in middleware I am able to fix this issue ...
0
votes
1
answer
182
views
Laravel sanctum and vue: user is logged in frontend but backend returns unauthorized
i have a log in form in my front end (vue) when users log in, in vue i can get back data of logged in user perfectly fine through
axios.get('http://127.0.0.1:8000/api/user').then((response)=>{
...
-1
votes
1
answer
807
views
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 ...
0
votes
1
answer
678
views
AuthManager throws Illegal offset type error
I don't know what happened but my app suddenly started throwing Illegal offset type when I try to log in as admin. The error happens when the authentication is successful and I'm redirected to this ...