Jwt-auth: Destroy token in logout in Restapi

Created on 16 Dec 2016  Â·  2Comments  Â·  Source: tymondesigns/jwt-auth

I am building a RESTapi , i want the token to be destroyed on the user logout.

Most helpful comment

use JWTAuth::invalidate($token)

All 2 comments

use JWTAuth::invalidate($token)

Thanks a lot , it worked for me as I wanted :)

Regards,

Laeeq ur Rehman
Software Engineer

airtango Private Limited

2nd Floor Shaaf Plaza # 70

Civic Center, Bahria Town - Phase IV
44000 Islamabad - Pakistan

T +92 51 2724 178

M +92 312 4051 646

l.[email protected]
www.airtango.pk http://www.airtango.pk/


Disclaimer: This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please delete it and notify the sender immediately. Thank you.

From: payamzarei [mailto:[email protected]]
Sent: Sunday, December 18, 2016 12:39 AM
To: tymondesigns/jwt-auth jwt-auth@noreply.github.com
Cc: laeeqairtango l.rehman@airtango.pk; Author author@noreply.github.com
Subject: Re: [tymondesigns/jwt-auth] Destroy token in logout in Restapi (#932)

use JWTAuth::invalidate($token)

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/tymondesigns/jwt-auth/issues/932#issuecomment-267782531 , or mute the thread https://github.com/notifications/unsubscribe-auth/AXLwQjGVib26ce-7vyzurumYnswZmkKXks5rJDpDgaJpZM4LPMX_ .

Was this page helpful?
0 / 5 - 0 ratings