trying with the store and such

This commit is contained in:
talksik
2022-03-17 20:13:49 -04:00
parent 453121c987
commit 34fe8e0c29
21 changed files with 478 additions and 35758 deletions
@@ -1,6 +1,8 @@
export class UserInfo {
import { ObjectId } from "mongodb";
export class GoogleUserInfo {
constructor(
public id: string,
public id: ObjectId,
public email: string,
public verifiedEmail: boolean,
public name: string,
+2 -1
View File
@@ -1 +1,2 @@
export * from "./userInfo.model";
export * from "./googleUserInfo.model";
export * from "./user.model";
+29
View File
@@ -0,0 +1,29 @@
import { GoogleUserInfo } from "./googleUserInfo.model";
import { ObjectId } from "mongodb";
export class User extends GoogleUserInfo {
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
);
}
}
+4 -1
View File
@@ -2,5 +2,8 @@
"name": "@nirvana/core",
"version": "1.0.0",
"main": "index.js",
"license": "MIT"
"license": "MIT",
"dependencies": {
"mongodb": "^4.4.1"
}
}