/api/collections/{collection.name}/auth-with-password
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/collections/{collection.name}/auth-with-password
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. |
Param | Type | Description |
---|---|---|
expand | String |
Auto expand record relations. Ex.:
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. |