Jwt-auth: Interface 'Tymon\\JWTAuth\\Contracts\\JWTSubject' not found

Created on 23 Mar 2017  路  5Comments  路  Source: tymondesigns/jwt-auth

Hi,

After installing the 0.5.10 version of jwt-auth in my Lumen 5.4 project.
I'm getting the below error
Interface 'Tymon\JWTAuth\Contracts\JWTSubject' not found

my Auth controller:

use IlluminateAuthAuthenticatable;
use LaravelLumenAuthAuthorizable;
use IlluminateDatabaseEloquentModel;
use IlluminateContractsAuthAuthenticatable as AuthenticatableContract;
use IlluminateContractsAuthAccessAuthorizable as AuthorizableContract;
use TymonJWTAuthContractsJWTSubject;
use IlluminateDatabaseEloquentSoftDeletes;

//use JenssegersMongodbEloquentModel as Eloquent;

class Users extends Model implements JWTSubject, AuthenticatableContract {

use SoftDeletes,
    Authenticatable;

Most helpful comment

Update your composer.json with this dependency:

"tymon/jwt-auth": "^1.0.0-beta.3@dev"

All 5 comments

You need to use the new v1.0.0 beta version in order to work with 5.4.

It's resolved now.
@kohenkatz Thanks a lot for your reply :)

@kohenkatz could you please explain how to install v1.0.0

Update your composer.json with this dependency:

"tymon/jwt-auth": "^1.0.0-beta.3@dev"

@kohenkatz Thanks a lot

Was this page helpful?
0 / 5 - 0 ratings