@omneedia/client-js
Version:
Isomorphic Javascript client for Omneedia
22 lines • 970 B
TypeScript
import type { MailPhoneProps, PasswordCredentials, ProviderProps, EmailResetProps } from './types';
import Api from './auth_api';
export default class OmneediaAuth {
protected ref: any;
protected tokenListener: any;
api: Api;
constructor(ref: any, options?: any);
getNewToken(refresh_token: string | null): Promise<any>;
signInWithPassword(props: PasswordCredentials): Promise<void>;
signUp(props: PasswordCredentials): Promise<void>;
signInWithProvider(props: ProviderProps): Promise<string | true>;
updateUser(props: any): Promise<any>;
onAuthStateChange(fn: Function): void;
resetPasswordForEmail(props: EmailResetProps): Promise<void>;
signInWithEmail(props: MailPhoneProps): Promise<void>;
getSession(): boolean | any;
session: () => boolean | any;
getUser(token?: string | null): Promise<any>;
isAuthenticated(): boolean | undefined;
signOut(): Promise<void>;
}
//# sourceMappingURL=auth.d.ts.map