gothinkster / laravel-realworld-example-app

Exemplary real world backend API built with Laravel
https://realworld.io
MIT License
1.2k stars 1.05k forks source link

Logout #6

Closed DevYunus closed 7 years ago

DevYunus commented 7 years ago

How to logout and refresh token ? tried $token = JWTAuth::parseToken(); $token->invalidate(); it gives The token could not be parsed from the request .

DevYunus commented 7 years ago

I am able to solve it by calling JWTAuth::parseToken('token) . This Repo is very useful . Thanks for such clean code.