diff --git a/src/JWTGuard.php b/src/JWTGuard.php index 31957072..8c82ba81 100644 --- a/src/JWTGuard.php +++ b/src/JWTGuard.php @@ -351,6 +351,16 @@ public function setRequest(Request $request) return $this; } + /** + * Get the token's auth factory. + * + * @return \Tymon\JWTAuth\Factory + */ + public function factory() + { + return $this->jwt->factory(); + } + /** * Get the last user we attempted to authenticate. *