Authenticate a player (client API)
nakama_authenticateAuthenticate a player using device, custom, or email credentials to obtain a session token for subsequent API calls.
Instructions
Establish a player session for the client API (:7350). Required before calling other client/player endpoints. Supports device, custom, or email auth. The session token is held in memory for subsequent calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Authentication method. | |
| id | No | Device or custom ID (for method device/custom). | |
| No | Email (for method email). | ||
| password | No | Password (for method email). | |
| username | No | Optional username to set when creating the account. | |
| create | No | Create the account if it does not exist (default true on Nakama). |