Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 6c9a371

Browse files
authored
Merge pull request #5 from jeffwray/master
Fixed error in README regarding getting token expires.
2 parents 4978101 + b7c7bd6 commit 6c9a371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ $token = $beeAuth->generateToken();
9191
// then you can use the following methods:
9292
$token->getAccessToken();
9393
$token->getRefreshToken();
94-
$token->getExpires();
94+
$token->getExpiresIn();
9595
```
9696

9797
Auth tokens are valid for 5 minutes. If you want to cache your tokens for as long as possible, you will need to pass a [PSR-16](https://www.php-fig.org/psr/psr-16/) compatible cache implementation. Laravel, Symfony and all major frameworks are already compatible with this interface. To enable the cache, you only need to call the `setCache` method passing a `Psr\SimpleCache\CacheInterface` implementation.

0 commit comments

Comments
 (0)