But JWT has it's own invalidate() that you can use while logging the user out in the backend
vendor/tymon/jwt-auth/src/JWTManager.php
/**
* Invalidate a Token by adding it to the blacklist.
*
* @param Token $token
* @return bool
*/
public function invalidate(Token $token)
{
if (! $this->blacklistEnabled) {
throw new JWTException('You must have the blacklist enabled to invalidate a token.');
}
return $this->blacklist->add($this->decode($token));
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
But JWT has it's own invalidate() that you can use while logging the user out in the backend