1.0.0 • Published 1 year ago

tgl-otp-module v1.0.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 year ago

Installation

yarn add tgl-otp-module

Usage

Config projectId, private key , clientEmail access firebase console to get config (project settings/service accounts)

// import module nestjs
import { OTPModule } from 'tgl-otp-firebase';
OTPModule.initModule({
      projectId: "XXX",
      privateKey: "XXXXXX",
      clientEmail: "firebase-adminsdk-ngost@XXXX.iam.gserviceaccount.com",
}),

// call service login
this.profileService.login(this.accountRepository, 'userName','password')

Package profile module:

 Verify ID token firebase