UNPKG

cloudhospital.react.sdk

Version:
46 lines (45 loc) 1.17 kB
export interface IdentityToken { id_token: string; access_token: string; refresh_token: string; expires_in: number; email: string | undefined; token_type: string; scope: string; error?: string; } export interface EmailSignIn { email: string; password: string; } export declare const EmailSignInSchema: import("yup").ObjectSchema<{ email: string; password: string; }, import("yup").AnyObject, { email: undefined; password: undefined; }, "">; export interface ExternalSignIn { grant_type: 'external'; provider: 'Google' | 'Facebook' | 'Apple'; email: string; external_token: string; sub: string; firstName: string; lastName: string; } export interface ExternalLogins { currentLogins: CurrentLogin[]; otherLogins: OtherLogin[]; canRemoveCurrentLogin: boolean; } export interface CurrentLogin { loginProvider: 'Google' | 'Facebook' | 'Apple'; providerDisplayName: 'Google' | 'Facebook' | 'Apple'; providerKey: string; } export interface OtherLogin { name: 'Google' | 'Facebook' | 'Apple'; displayName: 'Google' | 'Facebook' | 'Apple'; handlerType: string; }