# v2.1.3

Prior to version 2.1.3, the developers had only one method to login and logout a user which was `setUserId` with a defined parameter (to login) or `null` to logout.

To disambiguate that, we replaced it with 2 much more understandable methods: `userLogin` and `userLogout` .

So call `userLogout` only when the user really logs out.

Passing nil on `start` method won't logout the user.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://purchasely.gitbook.io/purchasely/3.4/faq/migration-guides/sdk/migrate-to-sdk-v3.0/v-2.1.3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
