import { BoraPortalConnectRequest, FaceLoginResponse, LoginProviderType, LoginWithIdTokenRequest } from '@haechi-labs/face-types'; import { Internal } from './Internal'; /** * The interface about authentication. * * @category API */ export declare class Auth { private readonly internal; constructor(internal: Internal); private emitLoginEventsOnlyEthlike; private emitLogoutEventsOnlyEthlike; /** * Sign-up(if new user) or login function. Need to initialize face with environment, blockchain and api key first. * * You can choose three options, Google, Facebook, and Apple login. * * @method * @returns {Promise} FaceLoginResponse. Unique user ID using on Face server and wallet address. */ login(): Promise; /** * Directly sign-up(if new user) or login using social login. Need to initialize face with environment, blockchain and api key first. * * Pass the desired login provider to parameter. * * @method * @param {LoginProviderType} provider - 'google.com' | 'facebook.com' | 'apple.com' * @returns {Promise} FaceLoginResponse. Unique user ID using on Face server and wallet address. */ directSocialLogin(provider: LoginProviderType): Promise; /** * Login using the idToken published from social providers and Signature. Need to initialize face with environment, blockchain and api key first. * You can make a Signature using Facewallet SDK API Secret. * * Pass the the idToken and Signature to parameters. * * @method * @param {LoginWithIdTokenRequest} loginWithIdTokenRequest * @returns {Promise} FaceLoginResponse. Unique user ID using on Face server and wallet address. */ loginWithIdToken(loginWithIdTokenRequest: LoginWithIdTokenRequest): Promise; boraLogin(connectRequest: BoraPortalConnectRequest, providers?: LoginProviderType[]): Promise; boraDirectSocialLogin(connectRequest: BoraPortalConnectRequest, provider: LoginProviderType): Promise; boraLoginWithIdToken(connectRequest: BoraPortalConnectRequest, loginWithIdTokenRequest: LoginWithIdTokenRequest): Promise; /** * Log out Facewallet. * * It will be resolved after successful logout. * * @method * @returns {Promise} */ logout(): Promise; /** * Return user information. * * @method * @returns {Promise} */ getCurrentUser(): Promise; /** * Check if user is already logged in. * * @returns {Promise} */ isLoggedIn(): Promise; } //# sourceMappingURL=Auth.d.ts.map