<?php
namespace Laravel\Passport\Exceptions;
use Illuminate\Auth\Access\AuthorizationException;
class InvalidAuthTokenException extends AuthorizationException
{
/**
* Create a new InvalidAuthTokenException for different auth tokens.
*
* @return static
*/
public static function different()
{
return new static('The provided auth token for the request is different from the session auth token.');
}
}
For code examples and implementation guides, please refer to the “Examples” section on our developer portal. Go to GitHub Repository