Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Invalid JWT token causes a 500 server error In Laravel

Iam New In JWT Auth Token And I don’t Know Why I Have Error 500 | SERVER ERROR ?

This Is My Code

 $token = $request -> header('auth_token'); // The Header is tab in postman
        if ($token) {
            JWTAuth::setToken($token)->invalidate(); // This Line Make Error 500
            return $this -> returnSuccessMessage('Logged Out Successfully');
        } else {
            return $this->returnError('5100' , 'Someting went error');
        }

    }

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

if you are work in postman Change the Check Your Token and make it == api_Token.thanks

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading