Skip to main content
Configure your website to enable social login using the Median JavaScript Bridge. This guide is for developers who’ve already set up social login (Facebook, Google, or Apple) on their website and want to add Median’s Social Login plugin for a native app experience.

How it works

You’ll use the Median JavaScript Bridge methods to trigger native login flows for each social provider. These methods only work when your website is running inside your app, not in a regular browser. The plugin works with your current authentication infrastructure, using the same API endpoints or JavaScript callback functions you already have for browser-based login. Whether you set up server-side redirects or client-side JavaScript callbacks, the plugin taps into your existing authentication flow without needing to rebuild your backend. Here’s the approach:
  • Show your standard login buttons when users visit your site in a browser.
  • Show the same buttons with modified JavaScript functionality that calls the JavaScript Bridge methods when they visit through your app (no styling changes needed).

Example implementation

Here’s how to set this up with JavaScript:
Last modified on December 3, 2026