# Updated authentication

All projects created after **January 14, 2026** use the updated authentication module (v2). Projects created before this date continue to use the original authentication module (v1).

The authentication version is permanently tied to your project and can't be changed. If you call an endpoint from the wrong version, the API returns an error. Make sure you use the endpoints and SDK versions that match your project's authentication version.

## Why there are two versions

Openfort introduced an updated authentication module to improve security and streamline the authentication flow. Because of this change, the API documentation splits authentication endpoints into two separate tags:

* [Auth v1 endpoints](https://openfort-xyz.github.io/swagger-api-doc/#/auth%20v1) — for projects created before January 14, 2026.
* [Auth v2 endpoints](https://openfort-xyz.github.io/swagger-api-doc/#/auth%20v2) — for projects created after January 14, 2026.

## SDK compatibility

Openfort SDKs were also updated to support the v2 authentication module. Starting from the following versions, SDKs use v2 endpoints:

| SDK | v2 starting version |
|-----|---------------------|
| `@openfort/openfort-js` | 1.0.0 |
| `@openfort/react-native` | 1.0.0 |
| `@openfort/react` | 0.2.0 |
| `Unity - com.openfort.sdk` | 0.4.0 |

:::warning
If your project was created before January 14, 2026, don't upgrade to SDK versions that use v2 endpoints. Calling v2 endpoints against a v1 project causes API errors.
:::

## Determine your project version

Check your project creation date in the [Openfort dashboard](https://dashboard.openfort.io). Projects display their creation date on the **Settings** page.

* **Created before January 14, 2026** — use v1 SDK versions and [auth v1 endpoints](https://openfort-xyz.github.io/swagger-api-doc/#/auth%20v1).
* **Created after January 14, 2026** — use the latest SDK versions and [auth v2 endpoints](https://openfort-xyz.github.io/swagger-api-doc/#/auth%20v2).
