getIssueTime

Learn how to get the time the token was issued.

This method provides the time the token was issued, expressed as a Unix timestamp in seconds.

Signature

This method has the following signature:

public function getIssueTime(): int

This method returns the time the token was issued, as a Unix timestamp in seconds.

Example

Here is a basic example of how to use this method:

<?phpuse Croct\Plug\Croct;
$croct = Croct::fromDotenv();$token = $croct->getUserToken();
$issueTime = $token->getIssueTime();