Simple Social Signin
Simple social sign in for Node.js
Usage
- Import
;
- Get auth URI
const authUri = ; // Send this to the browser for the user to open
- Get user info
console;
{
email: '...',
family_name: '...',
gender: '...',
given_name: '...',
hd: '...',
id: '...',
link: '...',
locale: '...',
name: '...',
picture: '...',
verified_email: boolean,
token: {
access_token: '...',
refresh_token: '...',
scope: '...',
token_type: '...',
id_token: '...',
expires_in: '...',
created_at: '...',
}
}
- Import
;
- Get auth URI
const authUri = ;
- Get user info
console;
{
email: '...',
id: '...',
first_name: '...',
middle_name: '...',
last_name: '...',
short_name: '...',
name: '...',
name_format: '...',
picture: {
data: {
height: 123,
is_silhouette: boolean,
url: '...',
width: 321
}
}
}
Dependencies
- Superagent HTTP lib