One-click authentication smoother than powder at A-Basin
Most popular option. 89% of users have Google accounts.
Perfect for developer tools and technical platforms.
Growing rapidly, especially with gaming communities.
Professional networks and B2B applications.
Social media integration and content platforms.
Consumer apps and social platforms.
// Configure your social providers
const socialAuth = new SocialAuth({
providers: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID,
scopes: ['email', 'profile']
},
github: {
clientId: process.env.GITHUB_CLIENT_ID,
scopes: ['user:email', 'read:user']
},
discord: {
clientId: process.env.DISCORD_CLIENT_ID,
scopes: ['identify', 'email']
}
}
});// React component example
const SocialLogin = () => {
const handleSocialLogin = async (provider) => {
try {
const result = await socialAuth.signIn(provider);
// User is now logged in
console.log('User:', result.user);
console.log('Token:', result.token);
} catch (error) {
console.error('Login failed:', error);
}
};
return (
<div className="social-login">
<button onClick={() => handleSocialLogin('google')}>
Continue with Google
</button>
<button onClick={() => handleSocialLogin('github')}>
Continue with GitHub
</button>
</div>
);
};// User data is automatically normalized
const user = await socialAuth.getCurrentUser();
// {
// id: "user_123",
// email: "sarah@example.com",
// name: "Sarah Johnson",
// avatar: "https://avatar.url",
// provider: "google",
// verified: true,
// metadata: {
// github_username: "sarahj",
// company: "23blocks"
// }
// }
// Link multiple social accounts
await socialAuth.linkAccount('github');Jessica, BoulderBuildCo Product Manager:
"Construction workers don't have time for complex registration forms. Google login gets them into our app in seconds. They can focus on building, not filling out forms."
Your app redirects to Google's OAuth endpoint with proper parameters
User logs in with Google (or is already logged in)
Google shows permission screen (email, profile, etc.)
Authorization code is sent to your callback URL
23blocks exchanges the code for an access token securely
User data is available in your app, session is created
Stop losing users to registration fatigue. Start converting visitors with one-click social login.
P.S. Our OAuth implementation is like a Boulder hiking trail – well-marked, secure, and gets you where you want to go without unnecessary detours.
P.P.S. We've processed more social logins than there are craft breweries in Colorado. That's over 25 million secure OAuth flows and counting.
Get product updates, engineering posts, and new block announcements delivered to your inbox.