# getUserToken

Learn how to provide the stored user token.

An implementation must return the user token stored for the current visitor, or `null` when none is set.

## Signature

This method has the following signature:

```php
public function getUserToken(): ?Token
```

This method returns the stored [`Token`](../../authentication/token), or `null` when none is set.
