passport-netlify
Version:
[Passport](http://passportjs.org/) strategy for authenticating with [Netlify](https://www.netlify.com/) using the OAuth 2.0 API.
23 lines (22 loc) • 478 B
TypeScript
interface UserInfoRaw {
id: string;
full_name: string;
email: string;
avatar_url: string | null;
}
export interface Profile {
_raw?: string;
_json?: UserInfoRaw;
id?: string;
displayName?: string;
emails?: {
value: string;
}[];
photos?: {
value: string;
}[];
provider?: string;
username?: string;
}
export declare function parseUserProfile(userInfo: UserInfoRaw): Profile;
export {};