add Profile common interface

This commit is contained in:
Horiuchi_H committed 2014-06-17 15:23:55 +09:00
1 parent 14bea81d0e
commit 39c44eb49c
2 files changed
+38 -12

No files matched your search

+19
View File
@@ -42,6 +42,24 @@ declare module 'passport' {
name?: string;
authenticate(req: express.Request, options?: Object): void;
}
interface Profile {
provider: string;
id: string;
displayName: string;
name? : {
familyName: string;
givenName: string;
middleName?: string;
};
emails?: {
value: string;
type?: string;
}[];
photos?: {
value: string;
}[];
}
}
declare module Express {
@@ -60,3 +78,4 @@ declare module Express {
isUnauthenticated(): boolean;
}
}