Skip to content
Advertisement

Tag: tymon-jwt

Failed Login with Tymon JWT Auth Laravel 8

When I try to get token with login function I get this error TypeError: Argument 1 passed to TymonJWTAuthJWTGuard::login() must be an instance of TymonJWTAuthContractsJWTSubject, instance of AppModelsUser given, called in …vendortymonjwt-authsrcJWTGuard.php on line 127 in file …vendortymonjwt-authsrcJWTGuard.php on line 140 Here my login function: Here my User model: How to solve my issue? Answer You must implement TymonJWTAuthContractsJWTSubject contract

Advertisement