File

src/app/modules/core/services/otp/otp.service.ts

Constructor

constructor(learnerService: LearnerService, configService: any)

Methods

generateOTP
generateOTP(data: any)
Returns: void
verifyOTP
verifyOTP(data: any)
Returns: void

Properties

configService
configService: any
import { Injectable } from '@angular/core';
import { LearnerService } from './../learner/learner.service';
import { ConfigService } from '@sunbird/shared';

@Injectable({
  providedIn: 'root'
})
export class OtpService {

  constructor(private learnerService: LearnerService, public configService: ConfigService) { }

  generateOTP(data) {
    const options = {
      url: this.configService.urlConFig.URLS.OTP.GENERATE,
      data: data
    };
    return this.learnerService.post(options);
  }

  verifyOTP(data) {
    const options = {
      url: this.configService.urlConFig.URLS.OTP.VERIFY,
      data: data
    };
    return this.learnerService.post(options);
  }
}

results matching ""

    No results matching ""