LoginBody
No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.
Kind: Type alias
Package: @ovok/core
Import
import { LoginBody } from '@ovok/core';
TypeScript shape
type LoginBody = {
email: string;
password: string;
type: "Patient" | "Practitioner";
} & ({
type: "Patient";
tenantCode: string;
} | {
type: "Practitioner";
tenantCode?: string;
});
This is a type-level export; it has no call parameters.
Public members
| Member | Type | Details |
|---|---|---|
email | string | The email address of the patient |
password | string | The password of the patient |
type | "Patient" | "Practitioner" | The type of user to login |
tenantCode | string | Optional. The tenant code to login to. This is required for patient login. The tenant code to login to. This is optional for practitioner login. If not provided, the first tenant code will be used. |
Learn the workflow
Continue with Authentication for the workflow context and examples.