Definition at line 10 of file AuthTokens.php.
◆ __construct()
AuthTokens constructor.
- Parameters
-
string | $root | |
int | $length | |
int | $duration | |
bool | $sameOrigin | |
Definition at line 24 of file AuthTokens.php.
◆ exists()
◆ expired()
◆ fetch()
Gets the data associated to a token.
- Parameters
-
- Returns
- false|mixed
Definition at line 126 of file AuthTokens.php.
◆ generateOrigin()
generateOrigin |
( |
array |
$data | ) |
|
|
protected |
◆ generateToken()
- Returns
- string
- Exceptions
-
Exception
Definition at line 59 of file AuthTokens.php.
◆ getKey()
◆ getOrigin()
◆ isSameOrigin()
◆ remove()
◆ setDuration()
setDuration |
( |
int |
$duration | ) |
|
◆ setLength()
◆ setParams()
setParams |
( |
int |
$length, |
|
|
int |
$duration, |
|
|
bool |
$sameOrigin |
|
) |
| |
◆ setSameOrigin()
setSameOrigin |
( |
bool |
$sameOrigin | ) |
|
◆ store()
Stores some data associated to a new token.
- Parameters
-
- Returns
- string
- Exceptions
-
Ubiquity\exceptions\CacheException
Definition at line 102 of file AuthTokens.php.
◆ tokenGenerator()
- Returns
- string
- Exceptions
-
Exception
Definition at line 35 of file AuthTokens.php.
◆ $duration
◆ $length
◆ $root
◆ $sameOrigin
◆ CACHE_KEY
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/controllers/auth/AuthTokens.php