yarn install tgl-profile-module
// import module nestjs
import { ProfileModule } from 'tgl-profile-module';
ProfileModule.register({
saltRound: Number(process.env.SALT_ROUND),
jwtSecret: process.env.JWT_SECRET,
expiresIn: Number(process.env.EXPIRES_IN),
}),
// call service login
this.profileService.login(this.accountRepository, 'userName','password')
- Register account
- Login