Skip to content

Commit

Permalink
feat: provide a way to determine is a request is authenticated (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
warlof authored Nov 14, 2020
1 parent 27ccd44 commit e1e3105
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ enabled:
- no_empty_comment

disabled:
- psr2_braces
- psr12_braces
- concat_without_spaces
- phpdoc_no_package
- no_blank_lines_after_class_opening
Expand Down
10 changes: 9 additions & 1 deletion src/Eseye.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Eseye
/**
* The Eseye Version.
*/
const VERSION = '2.2.2';
const VERSION = '2.3.0';

/**
* @var \Seat\Eseye\Containers\EsiAuthentication
Expand Down Expand Up @@ -164,6 +164,14 @@ public function setAuthentication(EsiAuthentication $authentication): self
return $this;
}

/**
* @return bool
*/
public function isAuthenticated(): bool
{
return ! is_null($this->authentication);
}

/**
* @param string $refreshToken
*
Expand Down

0 comments on commit e1e3105

Please sign in to comment.