@5calls/react-components
Version:
React component library for 5 Calls webapp
17 lines (16 loc) • 752 B
TypeScript
import * as auth0base from 'auth0-js';
import { UserState, UserProfile, AuthResponse, Auth0Config } from '../shared/model';
export declare class LoginService {
auth0: auth0base.WebAuth;
popup: boolean;
constructor(auth0Config: Auth0Config);
checkAndRenewSession(profile: UserProfile, authToken: string, force?: boolean): Promise<AuthResponse>;
isLoggedIn(user?: UserState): boolean;
signup: (username?: string, password?: string) => Promise<string>;
login(username?: string, password?: string): Promise<string>;
twitterLogin: () => void;
facebookLogin: () => void;
logout(): void;
handleAuthentication(): Promise<AuthResponse>;
decodeAndSetProfile(auth0Hash: auth0base.Auth0DecodedHash): AuthResponse;
}