Skip to content

Commit

Permalink
✨ Add new getter for JWT's factory (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingkero authored Mar 2, 2024
1 parent 944b1de commit 9c82452
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/JWTGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 9c82452

Please sign in to comment.