@omneedia/client-js
Version:
Isomorphic Javascript client for Omneedia
22 lines • 973 B
TypeScript
import type { MailPhoneProps, PasswordCredentials, ProviderProps, EmailResetProps } from './types';
export default class OmneediaAuth {
protected ref: any;
protected tokenListener: any;
private options;
constructor(ref: any, options?: any);
getNewToken(refresh_token: string | null): Promise<any>;
private _setUserData;
signInWithPassword(props: PasswordCredentials): Promise<any>;
signUp(props: PasswordCredentials): Promise<void>;
signInWithProvider(props: ProviderProps): Promise<string | false>;
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