# User session

Canonical page: https://docs.ovok.com/flutter-sdk/reference/ovok_sdk/user-session

{/* Generated by scripts/generate_reference.dart; do not edit. */}

## OvokUnauthenticatedReason [#ovokunauthenticatedreason]

```dart
class OvokUnauthenticatedReason
```

Why the user was signed out without asking.

### Constructors [#constructors]

#### OvokUnauthenticatedReason.refreshRejected [#ovokunauthenticatedreasonrefreshrejected]

```dart
OvokUnauthenticatedReason.refreshRejected(int status)
```

The token endpoint refused the stored refresh token with [`status`](#ovokunauthenticatedreasonstatus).

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `status` | `int` | positional |  |

### Properties [#properties]

#### OvokUnauthenticatedReason.status [#ovokunauthenticatedreasonstatus]

```dart
final int status
```

The status the token endpoint refused the refresh token with.


## UnauthenticatedListener [#unauthenticatedlistener]

```dart
typedef UnauthenticatedListener = void Function(OvokUnauthenticatedReason)
```

Called when the SDK signs the user out because the refresh token was refused.
