Auth with password ({collection.name})

Returns new auth token and account data by a combination of {#if allowUsername && allowEmail} username/email {:else if allowUsername} username {:else if allowEmail} email {/if} and password.

API details
POST

/api/collections/{collection.name}/auth-with-password

Body Parameters
Param Type Description
Required identity
String The {#if allowUsername} username {/if} {#if allowUsername && allowEmail} or {/if} {#if allowEmail} email {/if} of the record to authenticate.
Required password
String The auth record password.
Query parameters
Param Type Description
expand String Auto expand record relations. Ex.: Supports up to 6-levels depth nested relations expansion.
The expanded relations will be appended to the record under the expand property (eg. {`"expand": {"relField1": {...}, ...}`}).
Only the relations to which the request user has permissions to view will be expanded.
Responses
{#each responses as response (response.code)} {/each}
{#each responses as response (response.code)}
{/each}