Giter Site home page Giter Site logo

can't get acess token in LoginProxy about larapi HOT 5 OPEN

esbenp avatar esbenp commented on July 23, 2024
can't get acess token in LoginProxy

from larapi.

Comments (5)

pishguy avatar pishguy commented on July 23, 2024

@aityahiaidir did you update cloned source code with pull requests?

https://github.com/esbenp/larapi/pulls

from larapi.

aityahiaidir avatar aityahiaidir commented on July 23, 2024

@MahdiPishguy
no i didn't done, which code, my one code ?

from larapi.

pishguy avatar pishguy commented on July 23, 2024

@aityahiaidir check pull requests and apply them on your local project, it seems this problem can be fine

from larapi.

nteath avatar nteath commented on July 23, 2024

@aityahiaidir It seems I have the same issue. Did you solve this?
After successful access token generation the user is not logged in and the auth()->user() returns null.

from larapi.

locto03 avatar locto03 commented on July 23, 2024

@nteath I have the same problem too. The way I fixed it is using middleware auth:ap for the logout route. My code is Route::post('auth/logout', 'LoginController@logout')->middleware('auth:api');

Also from the client, you have send a post request that has Authorization Bearer token. This way the authmanager can use the included access token in your request to retrieve the correct user

from larapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.