adding route for sign up and such
This commit is contained in:
@@ -2,7 +2,7 @@ import { ObjectId } from "mongodb";
|
||||
|
||||
export class GoogleUserInfo {
|
||||
constructor(
|
||||
public id: ObjectId,
|
||||
public id: string,
|
||||
public email: string,
|
||||
public verifiedEmail: boolean,
|
||||
public name: string,
|
||||
|
||||
@@ -1,29 +1,15 @@
|
||||
import { GoogleUserInfo } from "./googleUserInfo.model";
|
||||
import { ObjectId } from "mongodb";
|
||||
|
||||
export class User extends GoogleUserInfo {
|
||||
export class User {
|
||||
constructor(
|
||||
id: ObjectId,
|
||||
email: string,
|
||||
verifiedEmail: boolean,
|
||||
name: string,
|
||||
given_name: string,
|
||||
family_name: string,
|
||||
picture: string,
|
||||
locale: string,
|
||||
|
||||
// additional properties specific to our users collection
|
||||
mongoId: ObjectId
|
||||
) {
|
||||
super(
|
||||
id,
|
||||
email,
|
||||
verifiedEmail,
|
||||
name,
|
||||
given_name,
|
||||
family_name,
|
||||
picture,
|
||||
locale
|
||||
);
|
||||
}
|
||||
public _id: ObjectId,
|
||||
public email: string,
|
||||
public verifiedEmail: boolean,
|
||||
public name: string,
|
||||
public given_name: string,
|
||||
public family_name: string,
|
||||
public picture: string,
|
||||
public locale: string
|
||||
) // additional properties specific to our users collection
|
||||
{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user