2022-07-16 00:36:02 +00:00
|
|
|
import { Injectable } from '@nestjs/common';
|
|
|
|
import { User } from './../user/user.entity';
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class AuthService {
|
|
|
|
async signUp(user: User) {
|
|
|
|
const token = Math.floor(1000 + Math.random() * 9000).toString();
|
|
|
|
// create user in db
|
|
|
|
// ...
|
|
|
|
// send confirmation mail
|
|
|
|
}
|
2022-07-25 04:38:48 +00:00
|
|
|
}
|