component-dbs-core
Version:
DTO objects shared among device backend
29 lines (28 loc) • 1.45 kB
TypeScript
import { HttpService } from '@nestjs/common';
import { EnvironmentService } from '../common_services/config/envService';
import { IdentitySignUpInputDto, ChangePasswordInputDto, IdentityLoginInputDto, IdentityDto, CheckAccessTokenInputDto, PhoneRegistrationDto } from '../identity/dtos/identityDto';
import { SmsService } from './smsService';
import JwtValidator from './utils/jwt/jwtValidator';
export declare class Auth0Service {
private readonly envService;
private readonly http;
private readonly smsService;
private readonly jwtValidator;
contentType: string;
auth0ConnectionType: string;
constructor(envService: EnvironmentService, http: HttpService, smsService: SmsService, jwtValidator: JwtValidator);
private getAdminToken;
checkAccessToken(input: CheckAccessTokenInputDto): Promise<{
code: number;
errorMessage: string;
}>;
createUser(input: IdentitySignUpInputDto): Promise<boolean>;
private getUserToken;
getIdentity(input: IdentityLoginInputDto | CheckAccessTokenInputDto): Promise<IdentityDto>;
private setNewPassword;
changePassword(input: ChangePasswordInputDto): Promise<boolean>;
private triggerForgotPasswordFlow;
forgotPassword(email: string): Promise<boolean>;
phoneRegister(phone: string): Promise<PhoneRegistrationDto>;
revokeRefreshToken(refreshToken: string): Promise<import("rxjs").Observable<import("axios").AxiosResponse<any>>>;
}