Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
simple-social-signin
Advanced tools
Simple social sign in for Node.js
npm install simple-social-signin
or
yarn add simple-social-signin
import { getGoogleAuthUri, getGoogleUserInfo } from 'simple-social-signin';
const authUri = getGoogleAuthUri({
clientId: 'a client ID',
redirectUri: 'https://example.com/my-google-callback',
}); // Send this to the browser for the user to open
console.log(await getGoogleUserInfo({
code: 'code URL query you get at /my-google-callback',
clientId: 'a client ID',
clientSecret: 'a client secret',
redirectUri: 'https://example.com/my-google-callback'
}));
{
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 { getFacebookAuthUri, getFacebookUserInfo } from 'simple-social-signin';
const authUri = getFacebookAuthUri({
clientId: 'a client ID',
redirectUri: 'https://example.com/my-facebook-callback',
state: 'a random string'
});
console.log(await getFacebookUserInfo({
code: 'code URL query you get at /my-facebook-callback',
clientId: 'a client ID',
clientSecret: 'a client secret',
redirectUri: 'https://example.com/my-facebook-callback'
}));
{
email: '...',
id: '...',
first_name: '...',
middle_name: '...',
last_name: '...',
short_name: '...',
name: '...',
name_format: '...',
picture: {
data: {
height: 123,
is_silhouette: boolean,
url: '...',
width: 321
}
}
}
Easiest way is to use yarn to install this package locally
In your app:
yarn add file:./../../simple-social-signin
FAQs
Simple social signin
We found that simple-social-signin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.