# ovok_sdk.resources.adopted_session

Canonical page: https://docs.ovok.com/python-sdk/reference/resources/adopted_session

Checks the tokens of a session signed in to by another client, for `ovok.auth.adopt_session`.

## login_tokens_from_adopted() [#login_tokens_from_adopted]

```python
login_tokens_from_adopted(adopted: Mapping[str, Any]) -> dict[str, Any]
```

Turn an adopted session into the body of a sign-in response.

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `adopted` | `Mapping[str, Any]` |  | `accessToken`, `profile` and optional `refreshToken`, `expiresIn` and `project`. |

**Returns**

- `dict[str, Any]`: The tokens `UserSession.begin` takes.

**Raises**

- `OvokValidationError`: A field is missing or malformed.
