import { ICredentials } from '@aws-amplify/core'; import { CodeDeliveryDetails, CognitoUser, CognitoUserResult, SamlOrgResult } from '@remote.it/types'; import { CognitoUserSession } from 'amazon-cognito-identity-js'; export interface Config { cognitoAuthDomain: string; cognitoClientID?: string; cognitoRegion: string; cognitoUserPoolID: string; callbackURL: string; signoutCallbackURL?: string; checkSamlURL: string; redirectURL: string; urlOpener?: any; } export default class AuthService { username?: string; private cognitoAuth; private config; private cognitoUser?; constructor(config: Partial); checkSaml(username: string): Promise; forceTokenRefresh(): Promise; checkSignIn(options?: { refreshToken: boolean; }): Promise; signIn(username: string, password?: string): Promise; /** * Confirm the sign in of a MFA session by providing the given * verification code. This is the second step in a MFA flow. */ confirmSignIn(code: string, challengeName?: any): Promise; googleSignIn(): Promise; oktaSignIn(): Promise; appleSignIn(): Promise; amazonSignIn(): Promise; samlSignIn(domain: string): Promise; signUp(username: string, password: string): Promise; resendSignUp(username: string): Promise; forgotPassword(email: string): Promise; forgotPasswordSubmit(shortcode: string, password: string, email?: string): Promise; /** * requestAccountRecovery attempts to signin without password which sends * an email to the user with a verification code. They can then use this * code along with their two-factor account recovery code using the * method "verifyRecoveryCode" to turn off two-factor and sign in. */ requestAccountRecovery(email?: string): Promise; /** * verifyRecoveryCode is the second part of a two-factor account recovery process. * The first step is to call "requestAccountRecovery" which will send a recovery email * to the user. They then take that code and their two-factor recovery code and pass it * into this method which allows them to login and change their settings. */ verifyRecoveryCode(emailVerificationCode: string, recoveryCode: string): Promise; currentCognitoSession(): Promise; currentUserInfo(): Promise; currentAuthenticatedUser(): Promise; updateCurrentUserAttributes(attributes: any): Promise; verifyCurrentUserAttribute(attribute: string): Promise; verifyCurrentUserAttributeSubmit(attribute: string, verificationCode: string): Promise; setupTOTP(): Promise; verifyTotpToken(code: string): Promise; changePassword(existingPassword: string, newPassword: string): Promise; signOut(): Promise; private determinAuthProvider; private configureCognito; private combineConfig; } //# sourceMappingURL=AuthService.d.ts.map