# getUserTokenDuration

Learn how to get the lifetime of the user token cookie.

This method provides the lifetime of the user token cookie, in seconds.

## Signature

This method has the following signature:

```php
public function getUserTokenDuration(): int
```

This method returns the lifetime of the user token cookie, in seconds.

## Example

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

```php
<?php
use Croct\Plug\CookieConfiguration;

$configuration = new CookieConfiguration();
$duration = $configuration->getUserTokenDuration();
```
