Authenticate a user (password)
auth_with_passwordAuthenticate a user with email/username and password to receive an auth token and user record. Use it to verify credentials or act on behalf of a user.
Instructions
Authenticate an end user against an auth collection with their identity (email/username) and password. Returns the auth token and the user record. Does not affect the MCP's own superuser session. Useful to obtain a token to act on behalf of a user or to verify credentials.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"identity": "<identity>",
"password": "<password>"
},
"name": "auth_with_password"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | Comma-separated relations to expand on the record. | |
| identity | Yes | Email or username. | |
| password | Yes | User password. | |
| collection | No | Auth collection (default 'users'). |