Magento 2 Social Login: one-click sign-in to the store
A free Magento 2 module: customers sign in and register with Google, Apple, Facebook, X, GitHub, LinkedIn, Microsoft, Amazon or Yahoo. The HybridAuth library handles the OAuth work, so the module stays small and focused on the Magento integration.
TypeOpen-source Magento 2 module
StackPHP 8.1, Magento 2.4, HybridAuth, OAuth 2.0 / OpenID Connect
LicenseMIT
Year2026
Task and solution
A long sign-up form with a password is one of the reasons shoppers abandon their carts. Social login fixes that, but existing Magento modules are paid or link accounts unsafely: entering someone else's email is enough to get into their account.
The goal was a free module with safe linking logic that is easy to configure and extend with new providers.
- 9 sign-in providers, each enabled separately; a button appears only when all its keys are filled in
- Automatic sign-in, linking to an existing account by verified email, or creating a new one
- Account takeover protection: a manually typed email is never linked to someone else's account
- A "Social Accounts" page in the customer area to link and unlink any provider
- Secrets are stored encrypted, the Redirect URI can be copied right from the admin
- Every button is its own template, the order is set in the admin
- A new provider can be added from a third-party module without changing this module's code
The module in numbers
9sign-in providers out of the box
0changes to the module to add a provider
1click for a customer to sign in
Want the same result?
Tell me about your task or estimate the cost in the calculator.