UNPKG

@oraichain/customauth

Version:

CustomAuth login with torus to get user private key

19 lines (18 loc) 1 kB
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums"; import AbstractLoginHandler from "./AbstractLoginHandler"; import { Auth0ClientOptions, LoginWindowResponse, MultifactorsGenericObject, MultifactorsVerifierResponse } from "./interfaces"; export default class GoogleHandler extends AbstractLoginHandler { readonly clientId: string; readonly redirect_uri: string; readonly typeOfLogin: LOGIN_TYPE; readonly uxMode: UX_MODE_TYPE; readonly redirectToOpener?: boolean; readonly jwtParams?: Auth0ClientOptions; readonly customState?: MultifactorsGenericObject; private readonly RESPONSE_TYPE; private readonly SCOPE; private readonly PROMPT; constructor(clientId: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: MultifactorsGenericObject); setFinalUrl(): void; getUserInfo(params: LoginWindowResponse): Promise<MultifactorsVerifierResponse>; }