OAuth & Social Login

Social Login That Actually Works

One-click authentication smoother than powder at A-Basin

All the Social Logins Your Users Love

Google

Most popular option. 89% of users have Google accounts.

GitHub

Perfect for developer tools and technical platforms.

Discord

Growing rapidly, especially with gaming communities.

LinkedIn

Professional networks and B2B applications.

Twitter

Social media integration and content platforms.

Facebook

Consumer apps and social platforms.

OAuth Implementation That Just Works

Step 1: Configure Social Providers (2 minutes)

// 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']
    }
  }
});

Step 2: Add Social Login Buttons

// 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>
  );
};

Step 3: Handle User Data (Automatic)

// 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');

Real Results from Real Apps

BoulderBuildCo (construction management platform):

Sign-up conversion: 23% → 78%
Registration time: 3 min → 12 seconds
Support tickets: Down 85%
Google login usage: 89% of users
User retention: +167%
Password reset requests: -94%

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."

Advanced OAuth Features

Account Linking

  • Link multiple social accounts
  • Merge existing accounts
  • Unified user profiles
  • Smart duplicate detection

Data Normalization

  • Standardized user data
  • Avatar URL management
  • Email verification status
  • Rich metadata extraction

Security Features

  • PKCE for mobile apps
  • State parameter validation
  • Nonce verification
  • Token refresh automation

Developer Experience

  • Pre-built UI components
  • Customizable styling
  • TypeScript support
  • React/Vue/Angular SDKs

How OAuth Actually Works

1

User Clicks "Continue with Google"

Your app redirects to Google's OAuth endpoint with proper parameters

2

Google Handles Authentication

User logs in with Google (or is already logged in)

3

User Grants Permissions

Google shows permission screen (email, profile, etc.)

4

Google Redirects with Code

Authorization code is sent to your callback URL

5

Exchange Code for Token

23blocks exchanges the code for an access token securely

6

User is Logged In

User data is available in your app, session is created

Perfect For Apps That...

Want to reduce signup friction
Have consumer-facing apps
Need accurate user data
Want higher conversion rates
Target mobile users
Build developer tools

Ready for Social Login That Just Works?

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.

Stay in the loop

Get product updates, engineering posts, and new block announcements delivered to your inbox.

No spam. Unsubscribe anytime. Privacy policy.