@piebits/pcs-js-sdk
Version:
The JS sdk to access Piebits Cloud Services
13 lines (12 loc) • 696 B
TypeScript
import { googleauthconfig, facebookauthconfig, emailpassauthconfigSIGNUP, emailpassauthconfigLOGIN, config } from './providerconfig';
export declare class AUTH {
private _config;
configure(config: config): void;
getuser(accessToken: string): Promise<object>;
logout(refreshToken: string): Promise<object>;
refresh(refreshToken: string): Promise<object>;
google(googleauthconfig: googleauthconfig): Promise<object>;
facebook(facebookauthconfig: facebookauthconfig): Promise<object>;
emailpass_signup(emailpassauthconfig: emailpassauthconfigSIGNUP): Promise<object>;
emailpass_login(emailpassauthconfig: emailpassauthconfigLOGIN): Promise<object>;
}