PHPackages                             rollpix/google-one-tap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. rollpix/google-one-tap

ActiveMagento2-module[Authentication &amp; Authorization](/categories/authentication)

rollpix/google-one-tap
======================

Google One Tap Sign-in for Magento 2

2.1.10(1w ago)129↓71.4%OSL-3.0PHPPHP ^7.4 || ^8.0

Since Nov 8Pushed 1mo agoCompare

[ Source](https://github.com/ROLLPIX/M2-google-one-tap)[ Packagist](https://packagist.org/packages/rollpix/google-one-tap)[ Docs](https://github.com/ROLLPIX/M2-google-one-tap)[ RSS](/packages/rollpix-google-one-tap/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (31)Used By (0)

Rollpix Google One Tap Sign-in for Magento 2
============================================

[](#rollpix-google-one-tap-sign-in-for-magento-2)

**Sponsor: [www.rollpix.com](https://www.rollpix.com)**

> **[Leer en Español](README_es.md)**

---

Overview
--------

[](#overview)

**Rollpix Google One Tap Sign-in** is a Magento 2 extension designed to provide a frictionless authentication experience for e-commerce customers. By integrating Google One Tap Sign-in and a configurable Google Sign-In Button, this extension eliminates the need for traditional logins, allowing users to authenticate with a single click.

This module improves user experience, increases conversion rates and reduces cart abandonment by removing login barriers.

Unlike other similar solutions, this extension is built from scratch with full customization capabilities, ensuring flexibility for store owners. It includes the **google/apiclient** dependency for secure server-side token verification.

---

Table of Contents
-----------------

[](#table-of-contents)

- [Why Choose Rollpix Google One Tap?](#why-choose-rollpix-google-one-tap)
- [Features](#features)
- [Technical Requirements](#technical-requirements)
- [Installation](#installation)
- [Google Cloud Console Setup](#google-cloud-console-setup)
- [Module Configuration](#module-configuration)
- [Configuration Options](#configuration-options)
- [Troubleshooting](#troubleshooting)
- [Changelog](#changelog)
- [License](#license)

---

Why Choose Rollpix Google One Tap?
----------------------------------

[](#why-choose-rollpix-google-one-tap)

### Frictionless Authentication

[](#frictionless-authentication)

Forget long, frustrating login forms. With **Google One Tap**, your customers can sign in instantly with their Google accounts, increasing engagement and checkout speed.

### Seamless Experience Across Devices

[](#seamless-experience-across-devices)

This extension provides a consistent login experience on desktop, tablets and mobile devices, making authentication effortless.

### Reduce Login Abandonment

[](#reduce-login-abandonment)

Customers often forget passwords or abandon the login process due to long authentication steps. **One Tap Sign-in** eliminates these barriers, ensuring a higher login success rate.

### Enhanced Security

[](#enhanced-security)

This module supports **Google's secure authentication protocols**, helping protect user credentials from unauthorized access. The included **google/apiclient** library ensures secure token validation.

### Full Customization

[](#full-customization)

Store administrators have full control over authentication settings, UI design, button appearance, and page-specific positioning to match their brand and requirements.

---

Features
--------

[](#features)

- Enable or disable the extension from the backend
- **Google One Tap Popup** with configurable position, auto sign-in, context, ITP support, and dismiss callback
- **Google Sign-In Button** on login, registration, checkout, and custom CSS selector pages
- **Card-style button** on login and checkout pages with title and styled container
- **Side column card** on registration page (next to the form)
- **Configurable button position** per page (above/below for login, above/below/side for registration, above/below for checkout)
- **Button appearance customization**: theme, size, shape, text, and logo alignment
- Secure authentication with **google/apiclient** server-side token verification
- Automatic customer account creation for new users
- Rate limiting to protect against brute force attacks
- Debug logging for troubleshooting
- **Amasty Checkout** compatibility (One Tap + optional button disable when Amasty Social Login is active)
- Spanish translations (Spain, Mexico, Argentina)
- **Module Information** section in admin showing version, module name, and repository URL
- CSP (Content Security Policy) compliant

---

Technical Requirements
----------------------

[](#technical-requirements)

RequirementVersion**Module Name**`rollpix/google-one-tap`**Magento**2.4.6 - 2.4.8**PHP**^8.1.0 || ^8.2.0**Dependency**`google/apiclient` ^2.15.0---

Installation
------------

[](#installation)

### Step 1: Configure Repository Access

[](#step-1-configure-repository-access)

```
# Option 1: Private Composer repository
composer config --auth http-basic.repo.rollpix.com [username] [password]

# Option 2: Private GitHub repository
composer config --global github-oauth.github.com [your-personal-access-token]
```

### Step 2: Add the Repository

[](#step-2-add-the-repository)

```
# Private Composer repository
composer config repositories.rollpix-google-one-tap composer https://repo.rollpix.com/

# Or GitHub repository
composer config repositories.rollpix-google-one-tap vcs https://github.com/ROLLPIX/M2-google-one-tap
```

### Step 3: Install the Module

[](#step-3-install-the-module)

```
composer require rollpix/google-one-tap:^2.0
bin/magento module:enable Rollpix_GoogleOneTap
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
```

### Step 4: Verify Installation

[](#step-4-verify-installation)

```
bin/magento module:status Rollpix_GoogleOneTap
```

---

Google Cloud Console Setup
--------------------------

[](#google-cloud-console-setup)

### Step 1: Create a Google Cloud Project

[](#step-1-create-a-google-cloud-project)

1. Go to [Google Cloud Console](https://console.cloud.google.com/)
2. Click **"Select a project"** at the top
3. Click **"New Project"**, enter a name, and click **"Create"**

### Step 2: Enable Google Identity API

[](#step-2-enable-google-identity-api)

1. Go to **APIs &amp; Services &gt; Library**
2. Search for **"Google Identity Services"** UPDATE (ahora se llama "Identity Toolkit API")
3. Click **"Enable"**

### Step 3: Configure OAuth Consent Screen

[](#step-3-configure-oauth-consent-screen)

1. Go to **APIs &amp; Services &gt; OAuth consent screen**
2. Select **"External"** as user type
3. Fill in: App name, support email, authorized domains, developer contact
4. Click through the remaining steps and **"Back to Dashboard"**

### Step 4: Create OAuth 2.0 Credentials

[](#step-4-create-oauth-20-credentials)

1. Go to **APIs &amp; Services &gt; Credentials**
2. Click **"Create Credentials" &gt; "OAuth 2.0 Client ID"**
3. Select **"Web application"**
4. Configure:
    - **Authorized JavaScript origins**: `https://yourdomain.com` (and `https://www.yourdomain.com`)
    - **Authorized redirect URIs**: `https://yourdomain.com/customer/account`
5. Click **"Create"**

### Step 5: Copy the Client ID

[](#step-5-copy-the-client-id)

Copy the **Client ID** (format: `123456789-abc123def456.apps.googleusercontent.com`). You do NOT need the Client Secret for One Tap.

> **Important:** Use HTTPS in production. Add all domains where you want to use One Tap (www and non-www).

---

Module Configuration
--------------------

[](#module-configuration)

### Access Configuration

[](#access-configuration)

**Stores &gt; Configuration &gt; Rollpix &gt; One Tap Login**

---

Configuration Options
---------------------

[](#configuration-options)

### 1. General

[](#1-general)

FieldTypeDescription**Module Status**Enable/DisableActivates or deactivates the entire module### 2. One Tap Popup Configuration

[](#2-one-tap-popup-configuration)

FieldTypeDescription**Client ID**Encrypted textGoogle OAuth Client ID from Cloud Console**Close Prompt on Background Click**Yes/NoClose the prompt when clicking outside**Auto Sign in**Yes/NoAuto-authenticate without clicking the prompt**Position**SelectPrompt position: Top Right, Top Left, Bottom Right, Bottom Left**Prompt Context**SelectText in prompt: "Sign In" or "Sign Up"**Prompt Parent Element ID**TextOptional DOM element ID to anchor the popup**ITP Support (Safari)**Yes/NoIntelligent Tracking Prevention support**Show Message on Dismiss**Yes/NoShow notification when user dismisses the prompt### 3. Google Sign-In Button

[](#3-google-sign-in-button)

FieldTypeDescription**Enable Button**Enable/DisableShow a Google Sign-In button on selected pages**Show Button On**MultiselectPages: Login, Registration, Checkout, Custom CSS Selector**Custom CSS Selector**TextCSS selector for custom button placement**Login Page Position**SelectAbove Login Form / Below Login Form**Registration Page Position**SelectAbove Registration Form / Below Registration Form / Side Column (Next to Form)**Checkout Page Position**SelectAbove Checkout Form / Below Email Section**Button Theme**SelectOutline, Filled Blue, Filled Black**Button Size**SelectLarge, Medium, Small**Button Shape**SelectRectangular, Pill, Circle, Square**Button Text**SelectSign in with Google, Sign up with Google, Continue with Google, Signin**Logo Alignment**SelectLeft, Center### 4. Security Settings

[](#4-security-settings)

FieldTypeDescription**Enable Debug Logging**Yes/NoLog detailed info for troubleshooting (never use in production)**Enable Rate Limiting**Yes/NoLimit authentication attempts per IP**Maximum Attempts**NumberMax attempts within time window (default: 10)**Time Window**NumberTime window in seconds (default: 60)### 5. Compatibility

[](#5-compatibility)

FieldTypeDescription**Disable Button when Amasty Social Login is active**Yes/NoAvoid duplicate Google buttons when Amasty Social Login is installed### 6. Module Information

[](#6-module-information)

Displays module name, current version (read from `composer.json`), and repository URL.

---

Button Display Styles
---------------------

[](#button-display-styles)

### Login &amp; Checkout Pages

[](#login--checkout-pages)

The Google Sign-In button is displayed inside a **styled card** with a title ("Quick sign in with your Google account") and the button centered. The card provides clean visual separation from the surrounding form.

### Registration Page

[](#registration-page)

- **Above/Below**: The button appears with an "Or" divider line separating it from the form.
- **Side Column**: A styled card is placed to the right of the registration form with a title ("Quick sign up with your Google account") and the button inside. On mobile, it stacks below the form.

---

Troubleshooting
---------------

[](#troubleshooting)

### The prompt does not appear on the frontend

[](#the-prompt-does-not-appear-on-the-frontend)

1. Verify the module is **enabled** in configuration
2. Verify the **Client ID** is correctly configured
3. Clear cache: `bin/magento cache:flush`
4. Verify you are not logged in (prompt only appears for non-authenticated users)
5. Verify your domain is in the **authorized origins** in Google Cloud Console
6. Open browser console (F12) and check for JavaScript errors

### Error "Invalid Client ID"

[](#error-invalid-client-id)

1. Verify the Client ID is correct (no extra spaces)
2. Verify the current domain is in the **authorized origins** in Google Cloud Console
3. Clear Magento cache after changing the Client ID

### The prompt appears but does not sign in

[](#the-prompt-appears-but-does-not-sign-in)

1. Check browser console (F12) for errors
2. Check Magento logs: `var/log/system.log` and `var/log/exception.log`
3. Verify the Google account has a verified email
4. Verify the domain uses **HTTPS** in production

---

Changelog
---------

[](#changelog)

### v2.1.3

[](#v213)

- Card-style button for login and checkout pages (styled container with title)
- Removed broken "Left/Right of Login Button" checkout positions
- Added "Above Checkout Form" checkout position
- Fixed registration "above" divider order via JS DOM swap

### v2.1.2

[](#v212)

- Fix button positioning: divider order, side column inline styles, checkout selectors

### v2.1.1

[](#v211)

- Module Information section in admin (name, version, repository URL)

### v2.1.0

[](#v210)

- Configurable button position per page (login, register, checkout)

### v2.0.0

[](#v200)

- Google Sign-In Button on login, registration, checkout, and custom pages
- Enhanced One Tap configuration (context, ITP support, prompt parent, dismiss callback)
- Button appearance customization (theme, size, shape, text, logo alignment)
- Amasty Checkout and Amasty Social Login compatibility
- Rate limiting and debug logging

### v1.x

[](#v1x)

- Google One Tap popup with configurable position and auto sign-in
- Secure server-side token verification with google/apiclient
- Automatic customer account creation
- Spanish translations

---

Security Features
-----------------

[](#security-features)

- **Token Verification**: All Google tokens are verified server-side using `google/apiclient`
- **Verified Email**: Only Google-verified emails are accepted
- **Encrypted Client ID**: Stored encrypted in the database using Magento's encryption
- **Rate Limiting**: Configurable limits to prevent brute force attacks
- **CSP Compliant**: Whitelists `accounts.google.com` for script-src and style-src
- **Error Logging**: All errors are logged for auditing

---

Support
-------

[](#support)

- **GitHub Issues**:
- **Repository**:
- **Website**: [www.rollpix.com](https://www.rollpix.com)

---

License
-------

[](#license)

- **OSL-3.0** (Open Software License 3.0)
- **AFL-3.0** (Academic Free License 3.0)

---

Built with performance, security and user experience in mind. Magento 2.4.6 - 2.4.8

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance94

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Recently: every ~27 days

Total

28

Last Release

7d ago

Major Versions

1.0.20 → 2.0.02026-02-27

PHP version history (2 changes)1.0.4PHP ^8.1.0 || ^8.2.0

2.1.8PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20818155?v=4)[Nicolas Marquevich](/maintainers/nmarquev)[@nmarquev](https://github.com/nmarquev)

---

Top Contributors

[![nmarquev](https://avatars.githubusercontent.com/u/20818155?v=4)](https://github.com/nmarquev "nmarquev (43 commits)")[![valentinoherpas](https://avatars.githubusercontent.com/u/139150013?v=4)](https://github.com/valentinoherpas "valentinoherpas (1 commits)")

---

Tags

magentoextensionmodulemagento2 modulemagento 2 modulemagento 2 extensionmagento2 extension

### Embed Badge

![Health badge](/badges/rollpix-google-one-tap/health.svg)

```
[![Health](https://phpackages.com/badges/rollpix-google-one-tap/health.svg)](https://phpackages.com/packages/rollpix-google-one-tap)
```

###  Alternatives

[olegkoval/magento2-regenerate-url-rewrites

Add into Magento 2 a CLI feature which allow to regenerate a Url Rewrites of products and categories

4483.9M2](/packages/olegkoval-magento2-regenerate-url-rewrites)[magepsycho/magento2-custom-shipping

Magento 2 Custom Shipping

708.4k](/packages/magepsycho-magento2-custom-shipping)[magepsycho/magento2-storepricing

Magento 2 Store View Pricing

2624.4k](/packages/magepsycho-magento2-storepricing)[magepsycho/magento2-easy-template-path-hints

Easy Template Path Hints for Magento 2

441.0k](/packages/magepsycho-magento2-easy-template-path-hints)[magepsycho/magento2-discountlimit

Magento 2 Discount Amount Limiter

1112.3k](/packages/magepsycho-magento2-discountlimit)[werfu/magento2-url-key-mask

Enable Product and Category URL\_key generation using masks

135.7k](/packages/werfu-magento2-url-key-mask)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
