# Laravel API is not authenticating user on sending access token from vueJs

**URL:** <https://community.auth0.com/t/laravel-api-is-not-authenticating-user-on-sending-access-token-from-vuejs/9431>\
**Category:** Get Help\
**Tags:** api, laravel, php, authentication, auth0\
**Created:** [February 7, 2018, 3:45pm UTC](https://community.auth0.com/t/laravel-api-is-not-authenticating-user-on-sending-access-token-from-vuejs/9431 "2018-02-07T15:45:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mubashar.hassan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mubashar.hassan](https://community.auth0.com/u/mubashar.hassan)\
**Post date:** [February 7, 2018, 3:45pm UTC](https://community.auth0.com/t/laravel-api-is-not-authenticating-user-on-sending-access-token-from-vuejs/9431/1 "2018-02-07T15:45:11Z")

</div>

Hello, I have followed all given instructions given in:  
[https://auth0.com/docs/quickstart/backend/laravel/01-authorization](https://auth0.com/docs/quickstart/backend/laravel/01-authorization)

But when I send access token from the VueJs app, then add middleware auth:api it authenticates it but Auth or Auth0 is not working, Even When I send a random text instead of access\_token, it also authorizes it, but when I do not send authorization in header it gives in error “Unauthorized.”  
When I add dd() in “Auth0\Login\Auth0Controller@callback”, this is also not working, this means that callback method is not calling. Anyone can please help

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 17, 2018, 3:19pm UTC](https://community.auth0.com/t/laravel-api-is-not-authenticating-user-on-sending-access-token-from-vuejs/9431/2 "2018-12-17T15:19:55Z")

</div>

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 17, 2018, 3:19pm UTC](https://community.auth0.com/t/laravel-api-is-not-authenticating-user-on-sending-access-token-from-vuejs/9431/3 "2018-12-17T15:19:58Z")

</div>


