diff --git a/src/Auth/Guards/JwtAuthGuard.php b/src/Auth/Guards/JwtAuthGuard.php
index <HASH>..<HASH> 100644
--- a/src/Auth/Guards/JwtAuthGuard.php
+++ b/src/Auth/Guards/JwtAuthGuard.php
@@ -50,7 +50,7 @@ class JWTAuthGuard extends JWTGuard
         // token validation
         if ($this->getToken() &&
             ($payload = $this->jwt->check(true)) &&
-            $this->jwt->checkProvider($this->provider->getModel())
+            $this->validateSubject()
         ) {
             return $this->user = $this->provider->retrieveById($payload['sub']);
         }
@@ -130,6 +130,21 @@ class JWTAuthGuard extends JWTGuard
 
         return $this->cachedToken;
     }
+    
+    /**
+     * Ensure the JWTSubject matches what is in the token.
+     *
+     * @return  bool
+     */
+    protected function validateSubject()
+    {
+        // If the provider doesn't have the necessary method
+        // to get the underlying model name then allow.
+        if (! method_exists($this->provider, 'getModel')) {
+            return true;
+        }
+        return $this->jwt->checkSubjectModel($this->provider->getModel());
+    }
 
     /**
      * Get the token.
Replace jwt function

jwt-auth was removed checkProvider function



<URL>