auth_with_password
Authenticate users or superusers against a PocketBase backend using email and password, with an optional collection name to target regular user or admin auth.
Instructions
Authenticate a user or superuser with email and password.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The user's email address. | ||
| password | Yes | The user's password. | |
| collection | No | The auth collection name. Defaults to '_superusers' for admin auth. Pass a custom collection name (e.g. 'users') for regular user auth. | _superusers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | JWT authentication token. | |
| record | Yes | The authenticated user record. May include additional custom fields. |