chore: added existing auth guard and user model

This commit is contained in:
ankitsridhar16
2022-12-07 20:30:02 +05:30
parent cd3178224a
commit ab1f8437ea
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import { ObjectType, ID, Field } from '@nestjs/graphql';
@ObjectType()
export class User {
@Field(() => ID, {
description: 'Firebase UID of the user',
})
uid: string;
@Field({
nullable: true,
description: 'Displayed name of the user (if given)',
})
displayName?: string;
@Field({
nullable: true,
description: 'Email of the user (if given)',
})
email?: string;
@Field({
nullable: true,
description: 'URL to the profile photo of the user (if given)',
})
photoURL?: string;
}